summaryrefslogtreecommitdiff
path: root/src/particle/particleemitter.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:54:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:54:08 +0300
commitef7e7319305f040a47c483b71f2e78da7a1d6149 (patch)
tree14ac10427d7c94288fcb198db5277455754589ae /src/particle/particleemitter.cpp
parent12389c8441c748996962412201af9e21d66f9e55 (diff)
downloadmanaverse-ef7e7319305f040a47c483b71f2e78da7a1d6149.tar.gz
manaverse-ef7e7319305f040a47c483b71f2e78da7a1d6149.tar.bz2
manaverse-ef7e7319305f040a47c483b71f2e78da7a1d6149.tar.xz
manaverse-ef7e7319305f040a47c483b71f2e78da7a1d6149.zip
Fix code style in other files.
Diffstat (limited to 'src/particle/particleemitter.cpp')
-rw-r--r--src/particle/particleemitter.cpp8
1 files changed, 4 insertions, 4 deletions
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<Particle *> 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<float>(cos(angleH));
+ const float sinAngleH = static_cast<float>(sin(angleH));
const float angleV = mParticleAngleVertical.value(tick);
- const float cosAngleV = cos(angleV);
- const float sinAngleV = sin(angleV);
+ const float cosAngleV = static_cast<float>(cos(angleV));
+ const float sinAngleV = static_cast<float>(sin(angleV));
const float power = mParticlePower.value(tick);
newParticle->setVelocity(cosAngleH * cosAngleV * power,
sinAngleH * cosAngleV * power,