Skip to content

Commit

Permalink
XEEN: Draw proper sky tiles outside bounds of sky maps
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Apr 5, 2018
1 parent 99799bc commit fe88ea1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion engines/xeen/map.cpp
Expand Up @@ -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],
Expand Down Expand Up @@ -1259,6 +1260,8 @@ int Map::getCell(int idx) {
}

if (!mapId) {
mapId = party._mazeId;

if (_isOutdoors) {
_currentSurfaceId = SURFTYPE_SPACE;
_currentWall = 0;
Expand Down Expand Up @@ -1293,6 +1296,8 @@ int Map::getCell(int idx) {
}

if (!mapId) {
mapId = party._mazeId;

if (_isOutdoors) {
_currentSurfaceId = SURFTYPE_SPACE;
_currentWall = 0;
Expand Down

0 comments on commit fe88ea1

Please sign in to comment.