projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make supertux accepts normal paths on the commandline
[supertux.git]
/
src
/
particlesystem.cpp
diff --git
a/src/particlesystem.cpp
b/src/particlesystem.cpp
index
73a7331
..
b82152a
100644
(file)
--- a/
src/particlesystem.cpp
+++ b/
src/particlesystem.cpp
@@
-88,8
+88,9
@@
SnowParticleSystem::SnowParticleSystem()
int snowsize = rand() % 3;
particle->texture = snowimages[snowsize];
do {
int snowsize = rand() % 3;
particle->texture = snowimages[snowsize];
do {
- particle->speed = snowsize/60.0 + (float(rand()%10)/300.0);
- } while(particle->speed < 0.01);
+ particle->speed = snowsize*.2 + (float(rand()%10)*.4);
+ } while(particle->speed < 1);
+ particle->speed *= 10; // gravity
particles.push_back(particle);
}
particles.push_back(particle);
}