aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-04 22:16:16 -0400
committerPaul Gilbert2018-04-04 22:16:16 -0400
commit99799bca62096dd3cacee594ea9e95f2a765399b (patch)
tree943cf2ffaa35bd20f48087e85d635c0deffb8508
parent4352ea6a2300f732e119125b601e01d5089032ad (diff)
downloadscummvm-rg350-99799bca62096dd3cacee594ea9e95f2a765399b.tar.gz
scummvm-rg350-99799bca62096dd3cacee594ea9e95f2a765399b.tar.bz2
scummvm-rg350-99799bca62096dd3cacee594ea9e95f2a765399b.zip
XEEN: Don't show space or sky tiles as obscured in the minimap
-rw-r--r--engines/xeen/map.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/xeen/map.cpp b/engines/xeen/map.cpp
index 5420f74941..a89918a9bb 100644
--- a/engines/xeen/map.cpp
+++ b/engines/xeen/map.cpp
@@ -1054,7 +1054,8 @@ int Map::mazeLookup(const Common::Point &pt, int layerShift, int wallMask) {
_currentSurfaceId = _mazeData[_mazeDataIndex]._cells[pos.y][pos.x]._surfaceId;
}
- if (_currentSurfaceId == SURFTYPE_SPACE || _currentSurfaceId == SURFTYPE_SKY) {
+ if (mazeData()._surfaceTypes[_currentSurfaceId] == SURFTYPE_SPACE ||
+ mazeData()._surfaceTypes[_currentSurfaceId] == SURFTYPE_SKY) {
_currentSteppedOn = true;
} else {
_currentSteppedOn = _mazeData[_mazeDataIndex]._steppedOnTiles[pos.y][pos.x];