[Scummvm-git-logs] scummvm master -> 2c11e4d2aaee8500a4021b095e62233e6c18953b
Strangerke
Strangerke at scummvm.org
Fri Aug 10 00:35:12 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2c11e4d2aa STARTREK: Fix compilation using MSVC9
Commit: 2c11e4d2aaee8500a4021b095e62233e6c18953b
https://github.com/scummvm/scummvm/commit/2c11e4d2aaee8500a4021b095e62233e6c18953b
Author: Strangerke (strangerke at scummvm.org)
Date: 2018-08-10T00:31:39+02:00
Commit Message:
STARTREK: Fix compilation using MSVC9
Changed paths:
engines/startrek/space.h
diff --git a/engines/startrek/space.h b/engines/startrek/space.h
index a3d4641..d5a05d4 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 {
More information about the Scummvm-git-logs
mailing list