aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorJohannes Schickel2014-06-02 01:00:15 +0200
committerJohannes Schickel2014-06-02 01:00:15 +0200
commit7b32db3b371f487c6b79c500aece05d9e8dcb48c (patch)
treed49970cb35435a812bddf7e79c041e8fcbd00222 /engines/mohawk
parent703cfa536b06986fcf5674fb0928679d42e4c29f (diff)
downloadscummvm-rg350-7b32db3b371f487c6b79c500aece05d9e8dcb48c.tar.gz
scummvm-rg350-7b32db3b371f487c6b79c500aece05d9e8dcb48c.tar.bz2
scummvm-rg350-7b32db3b371f487c6b79c500aece05d9e8dcb48c.zip
MOHAWK: Use float constants in Myst code.
This silences some float conversion warnings.
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/myst_stacks/mechanical.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mohawk/myst_stacks/mechanical.cpp b/engines/mohawk/myst_stacks/mechanical.cpp
index 3181b78ae1..b5d1285435 100644
--- a/engines/mohawk/myst_stacks/mechanical.cpp
+++ b/engines/mohawk/myst_stacks/mechanical.cpp
@@ -353,7 +353,7 @@ void Mechanical::o_elevatorRotationMove(uint16 op, uint16 var, uint16 argc, uint
int16 step = ((rect.bottom - mouse.y) * lever->getNumFrames()) / rect.height();
step = CLIP<int16>(step, 0, maxStep);
- _elevatorRotationSpeed = step * 0.1;
+ _elevatorRotationSpeed = step * 0.1f;
// Draw current frame
lever->drawFrame(step);
@@ -386,9 +386,9 @@ void Mechanical::o_elevatorRotationStop(uint16 op, uint16 var, uint16 argc, uint
// Decrease speed
while (speed > 2) {
- speed -= 0.5;
+ speed -= 0.5f;
- _elevatorRotationGearPosition += speed * 0.1;
+ _elevatorRotationGearPosition += speed * 0.1f;
if (_elevatorRotationGearPosition > 12)
break;