diff options
author | Paul Gilbert | 2018-04-04 22:45:52 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-04 22:45:52 -0400 |
commit | fe88ea1092fb56b964a3261047cfb9a5e3263c6b (patch) | |
tree | 5afc3520e79a9e1c23406b8f994bf2f5cf015299 /engines/xeen | |
parent | 99799bca62096dd3cacee594ea9e95f2a765399b (diff) | |
download | scummvm-rg350-fe88ea1092fb56b964a3261047cfb9a5e3263c6b.tar.gz scummvm-rg350-fe88ea1092fb56b964a3261047cfb9a5e3263c6b.tar.bz2 scummvm-rg350-fe88ea1092fb56b964a3261047cfb9a5e3263c6b.zip |
XEEN: Draw proper sky tiles outside bounds of sky maps
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/map.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/xeen/map.cpp b/engines/xeen/map.cpp index a89918a9bb..24a10bf448 100644 --- a/engines/xeen/map.cpp +++ b/engines/xeen/map.cpp @@ -1225,7 +1225,8 @@ void Map::setWall(const Common::Point &pt, Direction dir, int v) { } int Map::getCell(int idx) { - int mapId = _vm->_party->_mazeId; + Party &party = *g_vm->_party; + int mapId = party._mazeId; Direction dir = _vm->_party->_mazeDirection; Common::Point pt( _vm->_party->_mazePosition.x + Res.SCREEN_POSITIONING_X[_vm->_party->_mazeDirection][idx], @@ -1259,6 +1260,8 @@ int Map::getCell(int idx) { } if (!mapId) { + mapId = party._mazeId; + if (_isOutdoors) { _currentSurfaceId = SURFTYPE_SPACE; _currentWall = 0; @@ -1293,6 +1296,8 @@ int Map::getCell(int idx) { } if (!mapId) { + mapId = party._mazeId; + if (_isOutdoors) { _currentSurfaceId = SURFTYPE_SPACE; _currentWall = 0; |