diff options
author | Jonathan Gray | 2003-06-04 12:48:50 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-06-04 12:48:50 +0000 |
commit | d61cd493af5f84ee3f4ed09e290c246c2dc6535a (patch) | |
tree | 5d55393200fa28ed646ccb1a8219276ecbeea071 /scumm | |
parent | 4e2eb20935a8660124541e91135326926a0353e9 (diff) | |
download | scummvm-rg350-d61cd493af5f84ee3f4ed09e290c246c2dc6535a.tar.gz scummvm-rg350-d61cd493af5f84ee3f4ed09e290c246c2dc6535a.tar.bz2 scummvm-rg350-d61cd493af5f84ee3f4ed09e290c246c2dc6535a.zip |
readClassicIndexFile updates from aquadran
svn-id: r8290
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/resource_v2.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scumm/resource_v2.cpp b/scumm/resource_v2.cpp index 08d12ee70c..c8beb528b5 100644 --- a/scumm/resource_v2.cpp +++ b/scumm/resource_v2.cpp @@ -61,7 +61,12 @@ void Scumm_v2::readClassicIndexFile() { for (i = 0; i < _numRooms; i++) { res.roomno[rtRoom][i] = i; - _fileHandle.seek(_numRooms, SEEK_CUR); + } + _fileHandle.seek(_numRooms, SEEK_CUR); + for (i = 0; i < _numRooms; i++) { + res.roomoffs[rtRoom][i] = _fileHandle.readUint16LE(); + if (res.roomoffs[rtRoom][i] == 0xFFFF) + res.roomoffs[rtRoom][i] = 0xFFFFFFFF; } for (i = 0; i < _numCostumes; i++) { |