From ef7e7319305f040a47c483b71f2e78da7a1d6149 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Apr 2014 19:54:08 +0300 Subject: Fix code style in other files. --- src/particle/particleemitter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/particle') diff --git a/src/particle/particleemitter.cpp b/src/particle/particleemitter.cpp index 54c3623c4..39550f03d 100644 --- a/src/particle/particleemitter.cpp +++ b/src/particle/particleemitter.cpp @@ -611,11 +611,11 @@ std::list ParticleEmitter::createParticles(const int tick) newParticle->moveTo(position); const float angleH = mParticleAngleHorizontal.value(tick); - const float cosAngleH = cos(angleH); - const float sinAngleH = sin(angleH); + const float cosAngleH = static_cast(cos(angleH)); + const float sinAngleH = static_cast(sin(angleH)); const float angleV = mParticleAngleVertical.value(tick); - const float cosAngleV = cos(angleV); - const float sinAngleV = sin(angleV); + const float cosAngleV = static_cast(cos(angleV)); + const float sinAngleV = static_cast(sin(angleV)); const float power = mParticlePower.value(tick); newParticle->setVelocity(cosAngleH * cosAngleV * power, sinAngleH * cosAngleV * power, -- cgit v1.2.3-70-g09d2