*** empty log message ***
authorTobias Gläßer <tobi.web@gmx.de>
Sun, 28 Mar 2004 14:07:59 +0000 (14:07 +0000)
committerTobias Gläßer <tobi.web@gmx.de>
Sun, 28 Mar 2004 14:07:59 +0000 (14:07 +0000)
SVN-Revision: 405

src/particlesystem.cpp

index 2003024..b85ac36 100644 (file)
@@ -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);
         }
     }