diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/base/particles/part_emitter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/wintermute/base/particles/part_emitter.cpp b/engines/wintermute/base/particles/part_emitter.cpp index c64a099cee..1c102d17ee 100644 --- a/engines/wintermute/base/particles/part_emitter.cpp +++ b/engines/wintermute/base/particles/part_emitter.cpp @@ -214,7 +214,8 @@ bool PartEmitter::initParticle(PartParticle *particle, uint32 currentTime, uint3 Vector2 vecVel(0, velocity); Matrix4 matRot; - matRot.rotationZ(Common::deg2rad(BaseUtils::normalizeAngle(angle - 180))); + float radZrot = Common::deg2rad<float>(BaseUtils::normalizeAngle(angle - 180.0)); + matRot.rotationZ(radZrot); matRot.transformVector2(vecVel); if (_alphaTimeBased) { @@ -433,7 +434,8 @@ bool PartEmitter::addForce(const Common::String &name, PartForce::TForceType typ force->_direction = Vector2(0, strength); Matrix4 matRot; - matRot.rotationZ(Common::deg2rad(BaseUtils::normalizeAngle(angle - 180))); + float radZrot = Common::deg2rad<float>(BaseUtils::normalizeAngle(angle - 180.0)); + matRot.rotationZ(radZrot); matRot.transformVector2(force->_direction); return STATUS_OK; |