summaryrefslogtreecommitdiff
path: root/src/rotationalparticle.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-21 02:38:18 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-21 02:38:18 +0300
commitdaf84780d386ee122ae4b4bd37b1e918f93fb202 (patch)
treef967cbbf8de1e36aa8c48a556938ef5bf1a9cab9 /src/rotationalparticle.cpp
parent98dabed4de60bc86522632379f2499aecbae2b70 (diff)
downloadmv-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.cpp4
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);
}