aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {