aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-04-20 20:58:00 +0000
committerPaweł Kołodziejski2003-04-20 20:58:00 +0000
commit91a259534168a9127ae1c737f48c60c86c719cfb (patch)
treeacfb1f6c4088dd39c011c9ced0dd0b15f17c2873 /scumm
parent6e3bafd6cebeb640e87362009af1b2b8e063092c (diff)
downloadscummvm-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.cpp7
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");