aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2003-05-09 03:02:49 +0000
committerJonathan Gray2003-05-09 03:02:49 +0000
commit8c8406cf503d721c4d28b149ab7caf683cb60b6b (patch)
tree918193c318aa0b7d7a7fe2d3fcca47af0db697a3
parent15bddf437b04efd0815f824085602424fa5e1a7d (diff)
downloadscummvm-rg350-8c8406cf503d721c4d28b149ab7caf683cb60b6b.tar.gz
scummvm-rg350-8c8406cf503d721c4d28b149ab7caf683cb60b6b.tar.bz2
scummvm-rg350-8c8406cf503d721c4d28b149ab7caf683cb60b6b.zip
zakstdemo now finishes properly and loops etc, this check seems to be wrong for v2 games at least
svn-id: r7402
-rw-r--r--scumm/boxes.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp
index d5b93967cb..21581f603e 100644
--- a/scumm/boxes.cpp
+++ b/scumm/boxes.cpp
@@ -211,7 +211,9 @@ Box *Scumm::getBoxBaseAddr(int box) {
// the tent to the elders, box = 2, but ptr[0] = 2 -> errors out.
// Hence we disable the check for now. Maybe in PASS (and other old games)
// we shouldn't subtract 1 from ptr[0] when performing the check?
- if (_gameId != GID_MONKEY_EGA)
+ // this also seems to be incorrect for atari st demo of zak
+ // and assumingly other v2 games
+ if ((_gameId != GID_MONKEY_EGA) && !(_features & GF_AFTER_V2))
checkRange(ptr[0] - 1, 0, box, "Illegal box %d");
if (_features & GF_SMALL_HEADER) {