diff options
author | Paweł Kołodziejski | 2003-04-20 20:58:00 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-04-20 20:58:00 +0000 |
commit | 91a259534168a9127ae1c737f48c60c86c719cfb (patch) | |
tree | acfb1f6c4088dd39c011c9ced0dd0b15f17c2873 /scumm | |
parent | 6e3bafd6cebeb640e87362009af1b2b8e063092c (diff) | |
download | scummvm-rg350-91a259534168a9127ae1c737f48c60c86c719cfb.tar.gz scummvm-rg350-91a259534168a9127ae1c737f48c60c86c719cfb.tar.bz2 scummvm-rg350-91a259534168a9127ae1c737f48c60c86c719cfb.zip |
added loading global objects states for v2
svn-id: r7041
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/resource_v2.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scumm/resource_v2.cpp b/scumm/resource_v2.cpp index 3c77315502..7c4fb326d4 100644 --- a/scumm/resource_v2.cpp +++ b/scumm/resource_v2.cpp @@ -57,8 +57,11 @@ void Scumm_v2::readIndexFile() { _palManipIntermediatePal = 0; // Will allocate when needed _fileHandle.readUint16LE(); /* version magic number */ - _fileHandle.readUint16LE(); /* nb global objects */ - _fileHandle.seek(_numGlobalObjects, SEEK_CUR); // Skip object flags + int num = _fileHandle.readUint16LE(); + assert(num == _numGlobalObjects); + for (int i = 0; i != num; i++) { + _objectStateTable[i] = _fileHandle.readByte(); + } readResTypeList(rtRoom, MKID('ROOM'), "room"); readResTypeList(rtCostume, MKID('COST'), "costume"); readResTypeList(rtScript, MKID('SCRP'), "script"); |