From daf84780d386ee122ae4b4bd37b1e918f93fb202 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 21 Jan 2012 02:38:18 +0300 Subject: Fix more warnings. --- src/rotationalparticle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rotationalparticle.cpp') 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(atan2(mVelocity.x, mVelocity.y)); if (rad < 0) - rad = static_cast(PI + (PI + rad)); + rad = static_cast(PI) + static_cast(PI) + rad; float range = static_cast(PI / size); // Determines which frame the particle should play - if (rad < range || rad > ((PI*2) - range)) + if (rad < range || rad > ((static_cast(PI)*2) - range)) { mAnimation->setFrame(0); } -- cgit v1.2.3-60-g2f50