mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 13:42:02 +00:00
STARTREK: Fix some problems on old compilers
This commit is contained in:
parent
efda57c114
commit
28debc6673
@ -25,7 +25,7 @@
|
||||
#include "common/scummsys.h"
|
||||
|
||||
namespace Common {
|
||||
class Rect;
|
||||
struct Rect;
|
||||
class Serializer;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user