diff options
author | Nipun Garg | 2019-06-27 05:36:41 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:01 +0200 |
commit | d553a37e396fa85fa139b0ad33421dad62c8d7bb (patch) | |
tree | 57f481ad0192ea72f33b7f5f36619190969abff2 /engines | |
parent | 1b7034cd87e2caed6eef9816a1e026519ba3135d (diff) | |
download | scummvm-rg350-d553a37e396fa85fa139b0ad33421dad62c8d7bb.tar.gz scummvm-rg350-d553a37e396fa85fa139b0ad33421dad62c8d7bb.tar.bz2 scummvm-rg350-d553a37e396fa85fa139b0ad33421dad62c8d7bb.zip |
HDB: Fix type of getMapBG/FGTileIndex
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/map-loader.cpp | 4 | ||||
-rw-r--r-- | engines/hdb/map-loader.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp index a5e7cf891d..49a7c8910a 100644 --- a/engines/hdb/map-loader.cpp +++ b/engines/hdb/map-loader.cpp @@ -733,14 +733,14 @@ uint32 Map::getMapFGTileFlags(int x, int y) { return 0; } -uint16 Map::getMapBGTileIndex(int x, int y) { +int16 Map::getMapBGTileIndex(int x, int y) { if (x < 0 || x >= _width || y < 0 || y >= _height) { return 0; } return _background[y * _width + x]; } -uint16 Map::getMapFGTileIndex(int x, int y) { +int16 Map::getMapFGTileIndex(int x, int y) { if (x < 0 || x >= _width || y < 0 || y >= _height) { return 0; } diff --git a/engines/hdb/map-loader.h b/engines/hdb/map-loader.h index 3916ee7485..151bef94d4 100644 --- a/engines/hdb/map-loader.h +++ b/engines/hdb/map-loader.h @@ -89,8 +89,8 @@ public: uint32 getMapBGTileFlags(int x, int y); uint32 getMapFGTileFlags(int x, int y); - uint16 getMapBGTileIndex(int x, int y); - uint16 getMapFGTileIndex(int x, int y); + int16 getMapBGTileIndex(int x, int y); + int16 getMapFGTileIndex(int x, int y); void setMapBGTileIndex(int x, int y, int index); void setMapFGTileIndex(int x, int y, int index); void addBGTileAnimation(int x, int y); |