aboutsummaryrefslogtreecommitdiff
path: root/scumm/scummvm.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-09 21:46:34 +0000
committerMax Horn2003-05-09 21:46:34 +0000
commit3a9d8cd8f48b7392614ff91d3e90932f86f1e2b4 (patch)
treef3f906cae9175517e22a04e72771cf0b7f67315d /scumm/scummvm.cpp
parent3ae28b3f5b8e0fdc304413841e5e812452baebb3 (diff)
downloadscummvm-rg350-3a9d8cd8f48b7392614ff91d3e90932f86f1e2b4.tar.gz
scummvm-rg350-3a9d8cd8f48b7392614ff91d3e90932f86f1e2b4.tar.bz2
scummvm-rg350-3a9d8cd8f48b7392614ff91d3e90932f86f1e2b4.zip
implemented v2 walkboxes (at least the debugger output looks right now, though I might have overlooked something)
svn-id: r7406
Diffstat (limited to 'scumm/scummvm.cpp')
-rw-r--r--scumm/scummvm.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index e7fc80fcfd..79ba18550f 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -1332,8 +1332,10 @@ void Scumm::initRoomSubBlocks() {
if (ptr) {
byte numOfBoxes = *ptr;
int size;
- if (_features & GF_AFTER_V3)
- size = numOfBoxes * (SIZEOF_BOX - 2) + 1;
+ if (_features & GF_AFTER_V2)
+ size = numOfBoxes * SIZEOF_BOX_V2 + 1;
+ else if (_features & GF_AFTER_V3)
+ size = numOfBoxes * SIZEOF_BOX_V3 + 1;
else
size = numOfBoxes * SIZEOF_BOX + 1;