diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-08-27 18:48:13 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-08-27 18:48:13 +0000 |
commit | a5d45f2fa5b0042e2d08a2bfed060dfb0417e75e (patch) | |
tree | 576815fd394d8d7bee804aaf46e9ff59f8eeb512 /src/particle.cpp | |
parent | 2cdb3c70b062014d9e96ff778c3bdee8796ecf5e (diff) | |
download | mana-client-a5d45f2fa5b0042e2d08a2bfed060dfb0417e75e.tar.gz mana-client-a5d45f2fa5b0042e2d08a2bfed060dfb0417e75e.tar.bz2 mana-client-a5d45f2fa5b0042e2d08a2bfed060dfb0417e75e.tar.xz mana-client-a5d45f2fa5b0042e2d08a2bfed060dfb0417e75e.zip |
Renamed "randomnes" to "randomness", so that it won't show up as part of Fate's
patch.
Diffstat (limited to 'src/particle.cpp')
-rw-r--r-- | src/particle.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/particle.cpp b/src/particle.cpp index 3b3f5116..8591838f 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -61,7 +61,7 @@ Particle::Particle(Map *map): mAutoDelete(true), mMap(map), mGravity(0.0f), - mRandomnes(0), + mRandomness(0), mBounce(0.0f), mFollow(false), mTarget(NULL), @@ -139,11 +139,11 @@ Particle::update() } } - if (mRandomnes > 0) + if (mRandomness > 0) { - mVelocity.x += (rand()%mRandomnes - rand()%mRandomnes) / 1000.0f; - mVelocity.y += (rand()%mRandomnes - rand()%mRandomnes) / 1000.0f; - mVelocity.z += (rand()%mRandomnes - rand()%mRandomnes) / 1000.0f; + mVelocity.x += (rand()%mRandomness - rand()%mRandomness) / 1000.0f; + mVelocity.y += (rand()%mRandomness - rand()%mRandomness) / 1000.0f; + mVelocity.z += (rand()%mRandomness - rand()%mRandomness) / 1000.0f; } mVelocity.z -= mGravity; |