Permalink
Browse files

STARTREK: Fix compilation using MSVC9

  • Loading branch information...
Strangerke committed Aug 9, 2018
1 parent 9715307 commit 2c11e4d2aaee8500a4021b095e62233e6c18953b
Showing with 1 addition and 1 deletion.
  1. +1 −1 engines/startrek/space.h
View
@@ -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 {

0 comments on commit 2c11e4d

Please sign in to comment.