From fcfe3b0b082bc60402d5ae3ec94df9838488787d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Gl=C3=A4=C3=9Fer?= Date: Sun, 28 Mar 2004 14:07:59 +0000 Subject: [PATCH] *** empty log message *** SVN-Revision: 405 --- src/particlesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.11.0