aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
authorMatthew Hoops2012-04-06 14:17:25 -0400
committerMatthew Hoops2012-04-06 14:23:00 -0400
commit3abacdae830392ae72d4d5c02c596af87370255e (patch)
tree6fa5a0fa843ffd1282f350f5be9560a0ad1cf329 /engines/pegasus
parent1646313214d20354f0cc9aacc6b00ce145010065 (diff)
downloadscummvm-rg350-3abacdae830392ae72d4d5c02c596af87370255e.tar.gz
scummvm-rg350-3abacdae830392ae72d4d5c02c596af87370255e.tar.bz2
scummvm-rg350-3abacdae830392ae72d4d5c02c596af87370255e.zip
PEGASUS: Attempt to fix compilation on MSVC
Diffstat (limited to 'engines/pegasus')
-rw-r--r--engines/pegasus/neighborhood/mars/robotship.cpp2
-rw-r--r--engines/pegasus/transition.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/neighborhood/mars/robotship.cpp b/engines/pegasus/neighborhood/mars/robotship.cpp
index 9776027839..a0ff749910 100644
--- a/engines/pegasus/neighborhood/mars/robotship.cpp
+++ b/engines/pegasus/neighborhood/mars/robotship.cpp
@@ -262,7 +262,7 @@ void RobotShip::makeVelocityVector(CoordType x1, CoordType y1, CoordType x2, Coo
CoordType length = ((PegasusEngine *)g_engine)->getRandomNumber(kVelocityVectorSlop - 1) + kVelocityVectorLength;
vector.x = x2 - x1;
vector.y = y2 - y1;
- float oldLength = sqrt(vector.x * vector.x + vector.y * vector.y);
+ float oldLength = sqrt((float)(vector.x * vector.x + vector.y * vector.y));
vector.x = (int)(vector.x * length / oldLength);
vector.y = (int)(vector.y * length / oldLength);
}
diff --git a/engines/pegasus/transition.h b/engines/pegasus/transition.h
index f32db63ebd..5f2b797d88 100644
--- a/engines/pegasus/transition.h
+++ b/engines/pegasus/transition.h
@@ -102,4 +102,4 @@ protected:
} // End of namespace Pegasus
-#endif \ No newline at end of file
+#endif