diff options
author | Paweł Kołodziejski | 2002-12-23 18:53:04 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-12-23 18:53:04 +0000 |
commit | 6f5a18228dd9024ee13645710222abdebcc61325 (patch) | |
tree | b0d5e8f6a5f58bd1d0007c903dd05f568f1a0379 /scumm/resource.cpp | |
parent | 6d0fd3989ce1636e960b72d104bad4c1e665478a (diff) | |
download | scummvm-rg350-6f5a18228dd9024ee13645710222abdebcc61325.tar.gz scummvm-rg350-6f5a18228dd9024ee13645710222abdebcc61325.tar.bz2 scummvm-rg350-6f5a18228dd9024ee13645710222abdebcc61325.zip |
changed read order of CMI variables (MAXS)
svn-id: r6076
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r-- | scumm/resource.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index f476882601..e15a0ab8ca 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -1517,25 +1517,25 @@ void Scumm::unkHeapProc2(int a, int b) void Scumm::readMAXS() { - if (_features & GF_AFTER_V8) { - _fileHandle.seek(50 + 50, SEEK_CUR); - _numVariables = _fileHandle.readUint32LE(); /* ? 1500 */ - _numBitVariables = _fileHandle.readUint32LE(); /* ? 2048 */ - _fileHandle.readUint32LE(); /* 40 */ - _numScripts = _fileHandle.readUint32LE(); - _numSounds = _fileHandle.readUint32LE(); - _numCharsets = _fileHandle.readUint32LE(); - _numCostumes = _fileHandle.readUint32LE(); - _numRooms = _fileHandle.readUint32LE(); - _numInventory = _fileHandle.readUint32LE(); - _numGlobalObjects = _fileHandle.readUint32LE(); - _numFlObject = _fileHandle.readUint32LE(); - _numLocalObjects = _fileHandle.readUint32LE(); - _numVerbs = _fileHandle.readUint32LE(); - _numNewNames = _fileHandle.readUint32LE(); - _fileHandle.readUint32LE(); - _fileHandle.readUint32LE(); - _numArray = _fileHandle.readUint32LE(); + if (_features & GF_AFTER_V8) { // CMI + _fileHandle.seek(50 + 50, SEEK_CUR); // 176 - 8 + _numVariables = _fileHandle.readUint32LE(); // 1500 + _numBitVariables = _fileHandle.readUint32LE(); // 2048 + _fileHandle.readUint32LE(); // 40 + _numScripts = _fileHandle.readUint32LE(); // 458 + _numSounds = _fileHandle.readUint32LE(); // 789 + _numCharsets = _fileHandle.readUint32LE(); // 1 + _numCostumes = _fileHandle.readUint32LE(); // 446 + _numRooms = _fileHandle.readUint32LE(); // 95 + _fileHandle.readUint32LE(); // 80 + _numGlobalObjects = _fileHandle.readUint32LE(); // 1401 + _fileHandle.readUint32LE(); // 60 + _numLocalObjects = _fileHandle.readUint32LE(); // 200 + _numNewNames = _fileHandle.readUint32LE(); // 100 + _numFlObject = _fileHandle.readUint32LE(); // 128 + _numInventory = _fileHandle.readUint32LE(); // 80 + _numStrings = _fileHandle.readUint32LE(); // 200 + _numVerbs = _fileHandle.readUint32LE(); // 50 // FIXME - uhm... COMI seems to have an ARRY with 143 entries, but // indeed _numArray gets set to 50 ?!? |