aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek
diff options
context:
space:
mode:
authorFilippos Karapetis2019-12-27 13:59:13 +0200
committerFilippos Karapetis2019-12-27 16:54:56 +0200
commit14a07a4871d27a9596e921c64034512c844d5566 (patch)
tree56dd99d2882c4c8a5323d42d7af0760d4223f351 /engines/startrek
parent936fe120863a51240407625f63c238a9bce3f132 (diff)
downloadscummvm-rg350-14a07a4871d27a9596e921c64034512c844d5566.tar.gz
scummvm-rg350-14a07a4871d27a9596e921c64034512c844d5566.tar.bz2
scummvm-rg350-14a07a4871d27a9596e921c64034512c844d5566.zip
STARTREK: Use a 32-bit integer for the file offset
Diffstat (limited to 'engines/startrek')
-rw-r--r--engines/startrek/room.cpp2
-rw-r--r--engines/startrek/room.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/startrek/room.cpp b/engines/startrek/room.cpp
index f3b853acde..84688acddc 100644
--- a/engines/startrek/room.cpp
+++ b/engines/startrek/room.cpp
@@ -756,7 +756,7 @@ void Room::mccoyScan(int direction, TextRef text, bool changeDirection, bool fro
showText(TX_SPEAKER_MCCOY, text, fromRDF);
}
-bool Room::isPointInPolygon(int16 offset, int16 x, int16 y) {
+bool Room::isPointInPolygon(int offset, int16 x, int16 y) {
int16 *data = (int16 *)(_rdfData + offset);
int16 numVertices = data[1];
int16 *vertData = &data[2];
diff --git a/engines/startrek/room.h b/engines/startrek/room.h
index be88008c4d..b3ae3e00d1 100644
--- a/engines/startrek/room.h
+++ b/engines/startrek/room.h
@@ -158,7 +158,7 @@ public:
* * Number of vertices in polygon
* * For each vertex: x and y coordinates.
*/
- bool isPointInPolygon(int16 offset, int16 x, int16 y);
+ bool isPointInPolygon(int offset, int16 x, int16 y);
byte *_rdfData;