diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/startrek/common.h | 2 | ||||
-rw-r--r-- | engines/startrek/iwfile.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/startrek/common.h b/engines/startrek/common.h index e4930b6f05..d76ef66c28 100644 --- a/engines/startrek/common.h +++ b/engines/startrek/common.h @@ -25,7 +25,7 @@ #include "common/scummsys.h" namespace Common { -class Rect; +struct Rect; class Serializer; } diff --git a/engines/startrek/iwfile.cpp b/engines/startrek/iwfile.cpp index 830cb78855..d97c20e7ea 100644 --- a/engines/startrek/iwfile.cpp +++ b/engines/startrek/iwfile.cpp @@ -63,7 +63,7 @@ int IWFile::getClosestKeyPosition(int16 x, int16 y) { for (int i = 0; i < _numEntries; i++) { sortedIndices[i].x = i; - sortedIndices[i].y = sqrt(_keyPositions[i].sqrDist(Common::Point(x, y))); + sortedIndices[i].y = (int16)sqrt((double)_keyPositions[i].sqrDist(Common::Point(x, y))); } sort(sortedIndices, sortedIndices + _numEntries, &iwSorter); |