diff options
author | James Brown | 2002-02-14 18:20:22 +0000 |
---|---|---|
committer | James Brown | 2002-02-14 18:20:22 +0000 |
commit | 6cb652c26c64d9da42c116f38c53759af02c6a96 (patch) | |
tree | fd57a571e3439910e8b9ae4dc52e37eb191e29ca /boxes.cpp | |
parent | 58765810019057edac9f8eeffe7a16080a291490 (diff) | |
download | scummvm-rg350-6cb652c26c64d9da42c116f38c53759af02c6a96.tar.gz scummvm-rg350-6cb652c26c64d9da42c116f38c53759af02c6a96.tar.bz2 scummvm-rg350-6cb652c26c64d9da42c116f38c53759af02c6a96.zip |
More zak goodness!
svn-id: r3581
Diffstat (limited to 'boxes.cpp')
-rw-r--r-- | boxes.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -45,9 +45,12 @@ byte Scumm::getNumBoxes() { Box *Scumm::getBoxBaseAddr(int box) { byte *ptr = getResourceAddress(rtMatrix, 2); checkRange(ptr[0]-1, 0, box, "Illegal box %d"); - if(_features & GF_SMALL_HEADER) - return (Box*)(ptr + box*SIZEOF_BOX + 1); - else + if(_features & GF_SMALL_HEADER) { + if (_gameId == GID_ZAK256) + return (Box*)(ptr + box*(SIZEOF_BOX-2) + 1); + else + return (Box*)(ptr + box*SIZEOF_BOX + 1); + } else return (Box*)(ptr + box*SIZEOF_BOX + 2); } |