From d553a37e396fa85fa139b0ad33421dad62c8d7bb Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 27 Jun 2019 05:36:41 +0530 Subject: HDB: Fix type of getMapBG/FGTileIndex --- engines/hdb/map-loader.cpp | 4 ++-- engines/hdb/map-loader.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/hdb') 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); -- cgit v1.2.3