From 41d1864add8dd9fe227963b812c59edb83a74138 Mon Sep 17 00:00:00 2001 From: James Brown Date: Fri, 8 Mar 2002 08:27:45 +0000 Subject: Zak/Indy box matrix fix. Still doesn't quite work :/ svn-id: r3684 --- scummvm.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scummvm.cpp') 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; -- cgit v1.2.3