diff options
| author | Strangerke | 2018-08-10 00:31:39 +0200 |
|---|---|---|
| committer | Strangerke | 2018-08-10 00:31:39 +0200 |
| commit | 2c11e4d2aaee8500a4021b095e62233e6c18953b (patch) | |
| tree | 807844d6703ef2a77b52006d0f7d4038d9b00a0e /engines/startrek | |
| parent | 971530787215ac2f9a36232005288dd8b2898412 (diff) | |
| download | scummvm-rg350-2c11e4d2aaee8500a4021b095e62233e6c18953b.tar.gz scummvm-rg350-2c11e4d2aaee8500a4021b095e62233e6c18953b.tar.bz2 scummvm-rg350-2c11e4d2aaee8500a4021b095e62233e6c18953b.zip | |
STARTREK: Fix compilation using MSVC9
Diffstat (limited to 'engines/startrek')
| -rw-r--r-- | engines/startrek/space.h | 2 |
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 { |
