aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2018-08-10 00:31:39 +0200
committerStrangerke2018-08-10 00:31:39 +0200
commit2c11e4d2aaee8500a4021b095e62233e6c18953b (patch)
tree807844d6703ef2a77b52006d0f7d4038d9b00a0e
parent971530787215ac2f9a36232005288dd8b2898412 (diff)
downloadscummvm-rg350-2c11e4d2aaee8500a4021b095e62233e6c18953b.tar.gz
scummvm-rg350-2c11e4d2aaee8500a4021b095e62233e6c18953b.tar.bz2
scummvm-rg350-2c11e4d2aaee8500a4021b095e62233e6c18953b.zip
STARTREK: Fix compilation using MSVC9
-rw-r--r--engines/startrek/space.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/startrek/space.h b/engines/startrek/space.h
index a3d4641fe8..d5a05d4b74 100644
--- a/engines/startrek/space.h
+++ b/engines/startrek/space.h
@@ -39,7 +39,7 @@ struct TPoint {
TPoint(T _x, T _y, T _z) : x(_x), y(_y), z(_z) {}
int32 getDiagonal() {
- return sqrt(x * x + y * y + z * z);
+ return (int32)sqrt((double)x * x + y * y + z * z);
}
TPoint<T> operator+(const TPoint<T> &p) const {