projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a337d4b
)
*** empty log message ***
author
Tobias Gläßer
<tobi.web@gmx.de>
Sun, 28 Mar 2004 14:07:59 +0000
(14:07 +0000)
committer
Tobias Gläßer
<tobi.web@gmx.de>
Sun, 28 Mar 2004 14:07:59 +0000
(14:07 +0000)
SVN-Revision: 405
src/particlesystem.cpp
patch
|
blob
|
history
diff --git
a/src/particlesystem.cpp
b/src/particlesystem.cpp
index
2003024
..
b85ac36
100644
(file)
--- 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);
}
}