aboutsummaryrefslogtreecommitdiff
path: root/scummvm.cpp
diff options
context:
space:
mode:
authorJames Brown2002-03-08 08:27:45 +0000
committerJames Brown2002-03-08 08:27:45 +0000
commit41d1864add8dd9fe227963b812c59edb83a74138 (patch)
tree0e462592252f447547d79c79e999a24222168e15 /scummvm.cpp
parentad800009b22b3c6603f0fe189f262284abd85d63 (diff)
downloadscummvm-rg350-41d1864add8dd9fe227963b812c59edb83a74138.tar.gz
scummvm-rg350-41d1864add8dd9fe227963b812c59edb83a74138.tar.bz2
scummvm-rg350-41d1864add8dd9fe227963b812c59edb83a74138.zip
Zak/Indy box matrix fix. Still doesn't quite work :/
svn-id: r3684
Diffstat (limited to 'scummvm.cpp')
-rw-r--r--scummvm.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/scummvm.cpp b/scummvm.cpp
index 246323b02c..39552332cd 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -780,7 +780,13 @@ void Scumm::initRoomSubBlocks() {
ptr = findResourceData(MKID('BOXD'), roomptr);
if (ptr) {
byte numOfBoxes=*(ptr);
- int size = numOfBoxes * SIZEOF_BOX+1;
+ int size;
+ if (_features & GF_OLD256)
+ size = numOfBoxes * (SIZEOF_BOX-2) + 1;
+ else
+ size = numOfBoxes * SIZEOF_BOX + 1;
+
+
createResource(rtMatrix, 2, size);
memcpy(getResourceAddress(rtMatrix, 2), ptr, size);
ptr += size;