diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-27 21:41:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-27 21:41:20 +0300 |
commit | 964ffbb9b6ed5246b14a7d0c0d065f7d38af0912 (patch) | |
tree | edef1b3f31183402e2d0f86ee48c9734c2a03c7e /src/particleemitter.cpp | |
parent | 41ac086fcd38fd472b579a495a8e8e7685ae4722 (diff) | |
download | manaplus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.gz manaplus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.bz2 manaplus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.xz manaplus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.zip |
Fix some warnings and improve code from gcc 4.6 compilation.
Diffstat (limited to 'src/particleemitter.cpp')
-rw-r--r-- | src/particleemitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp index cd42fd865..b3f8f40d7 100644 --- a/src/particleemitter.cpp +++ b/src/particleemitter.cpp @@ -522,9 +522,9 @@ std::list<Particle *> ParticleEmitter::createParticles(int tick) float angleV = mParticleAngleVertical.value(tick); float power = mParticlePower.value(tick); newParticle->setVelocity( - static_cast<float>(cos(angleH) * cos(angleV) * power), - static_cast<float>(sin(angleH) * cos(angleV) * power), - static_cast<float>(sin(angleV) * power)); + static_cast<float>(cos(angleH) * cos(angleV)) * power, + static_cast<float>(sin(angleH) * cos(angleV)) * power, + static_cast<float>(sin(angleV)) * power); newParticle->setRandomness(mParticleRandomness.value(tick)); newParticle->setGravity(mParticleGravity.value(tick)); |