diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-21 02:38:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-21 02:38:18 +0300 |
commit | daf84780d386ee122ae4b4bd37b1e918f93fb202 (patch) | |
tree | f967cbbf8de1e36aa8c48a556938ef5bf1a9cab9 /src/rotationalparticle.cpp | |
parent | 98dabed4de60bc86522632379f2499aecbae2b70 (diff) | |
download | mv-daf84780d386ee122ae4b4bd37b1e918f93fb202.tar.gz mv-daf84780d386ee122ae4b4bd37b1e918f93fb202.tar.bz2 mv-daf84780d386ee122ae4b4bd37b1e918f93fb202.tar.xz mv-daf84780d386ee122ae4b4bd37b1e918f93fb202.zip |
Fix more warnings.
Diffstat (limited to 'src/rotationalparticle.cpp')
-rw-r--r-- | src/rotationalparticle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rotationalparticle.cpp b/src/rotationalparticle.cpp index 89b978f4d..f92b0f3eb 100644 --- a/src/rotationalparticle.cpp +++ b/src/rotationalparticle.cpp @@ -61,12 +61,12 @@ bool RotationalParticle::update() float rad = static_cast<float>(atan2(mVelocity.x, mVelocity.y)); if (rad < 0) - rad = static_cast<float>(PI + (PI + rad)); + rad = static_cast<float>(PI) + static_cast<float>(PI) + rad; float range = static_cast<float>(PI / size); // Determines which frame the particle should play - if (rad < range || rad > ((PI*2) - range)) + if (rad < range || rad > ((static_cast<float>(PI)*2) - range)) { mAnimation->setFrame(0); } |