diff options
author | Sven Hesse | 2006-11-27 14:19:30 +0000 |
---|---|---|
committer | Sven Hesse | 2006-11-27 14:19:30 +0000 |
commit | 9afb08341c89d20f54de4b6c9efec69ab60fc79d (patch) | |
tree | 4a4ec7a00af1ff2cd88e0b328d69f2b5ec40cb49 /engines/gob/map_v2.cpp | |
parent | b2fb23a134d7f6486bef0922159fa747411d9f14 (diff) | |
download | scummvm-rg350-9afb08341c89d20f54de4b6c9efec69ab60fc79d.tar.gz scummvm-rg350-9afb08341c89d20f54de4b6c9efec69ab60fc79d.tar.bz2 scummvm-rg350-9afb08341c89d20f54de4b6c9efec69ab60fc79d.zip |
- Properly implemented o2_getCDTrackPos()
- Each save has now its own file (.s??). They also should be endian-safe now
(Can be disabled for testing by uncommenting #define GOB_ORIGSAVES in gob.cpp)
- General endianness-fixes
svn-id: r24794
Diffstat (limited to 'engines/gob/map_v2.cpp')
-rw-r--r-- | engines/gob/map_v2.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/gob/map_v2.cpp b/engines/gob/map_v2.cpp index ac94b39b39..a9b7aca5fe 100644 --- a/engines/gob/map_v2.cpp +++ b/engines/gob/map_v2.cpp @@ -114,12 +114,18 @@ void Map_v2::loadMapObjects(char *avjFile) { dataPos1 = mapData.pos(); mapData.seek(dataPos2); if (variables != _vm->_global->_inter_variables) { + byte *sizes; + _passMap = (int8 *) variables; mapHeight = 200 / _tilesHeight; mapWidth = _screenWidth / _tilesWidth; - for (i = 0; i < mapHeight; i++) + sizes = _vm->_global->_inter_variablesSizes + + (((char *) _passMap) - _vm->_global->_inter_variables); + for (i = 0; i < mapHeight; i++) { for (j = 0; j < mapWidth; j++) setPass(j, i, mapData.readSByte()); + memset(sizes + i * _passWidth, 0, mapWidth); + } } mapData.seek(dataPos1); |