aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/map.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-01-16 21:26:06 -0500
committerPaul Gilbert2015-01-16 21:26:06 -0500
commit6bfd599535b839ce51261ff7ed82bbca92538050 (patch)
tree2a0b7c0c2b8d705263cfa93eb8fb9aee8c48c0c5 /engines/xeen/map.cpp
parent484901e7a299f26afa1be9ca1644fee0aef7acf1 (diff)
downloadscummvm-rg350-6bfd599535b839ce51261ff7ed82bbca92538050.tar.gz
scummvm-rg350-6bfd599535b839ce51261ff7ed82bbca92538050.tar.bz2
scummvm-rg350-6bfd599535b839ce51261ff7ed82bbca92538050.zip
XEEN: Fixes for map loading cells and indoor sprite list references
Diffstat (limited to 'engines/xeen/map.cpp')
-rw-r--r--engines/xeen/map.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/xeen/map.cpp b/engines/xeen/map.cpp
index a5a40c9029..6bd1ed09ba 100644
--- a/engines/xeen/map.cpp
+++ b/engines/xeen/map.cpp
@@ -950,7 +950,7 @@ void Map::load(int mapId) {
if (mapId != 0) {
// Load in the maze's data file
Common::String datName = Common::String::format("maze%c%03d.dat",
- (_vm->_party._mazeId >= 100) ? 'x' : '0', _vm->_party._mazeId);
+ (mapId >= 100) ? 'x' : '0', mapId);
File datFile(datName);
mazeData->synchronize(datFile);
datFile.close();
@@ -1435,11 +1435,11 @@ int Map::getCell(int idx) {
_currentWall._data = 0x8888;
return 0x8888;
}
-
- _mazeDataIndex = 0;
- while (_mazeData[_mazeDataIndex]._mazeId != mapId)
- ++_mazeDataIndex;
}
+
+ _mazeDataIndex = 0;
+ while (_mazeData[_mazeDataIndex]._mazeId != mapId)
+ ++_mazeDataIndex;
}
MazeWallLayers &wallLayers = _mazeData[_mazeDataIndex]._wallData[pt.y][pt.x];