From: Tobias Gläßer Date: Sun, 28 Mar 2004 14:07:59 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fcfe3b0b082bc60402d5ae3ec94df9838488787d;p=supertux.git *** empty log message *** SVN-Revision: 405 --- diff --git a/src/particlesystem.cpp b/src/particlesystem.cpp index 2003024ec..b85ac3686 100644 --- a/src/particlesystem.cpp +++ b/src/particlesystem.cpp @@ -104,7 +104,7 @@ void SnowParticleSystem::simulate(float elapsed_time) SnowParticle* particle = (SnowParticle*) *i; particle->y += particle->speed * elapsed_time; if(particle->y > screen->h) { - particle->y = 0; + particle->y = fmodf(particle->y , virtual_height); particle->x = rand() % int(virtual_width); } }