[Scummvm-cvs-logs] CVS: scummvm/scumm boxes.cpp,1.18,1.19
Jonathan Gray
khalek at users.sourceforge.net
Thu May 8 20:03:16 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv4805
Modified Files:
boxes.cpp
Log Message:
zakstdemo now finishes properly and loops etc, this check seems to be wrong for v2 games at least
Index: boxes.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/boxes.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- boxes.cpp 30 Apr 2003 12:57:46 -0000 1.18
+++ boxes.cpp 9 May 2003 03:02:49 -0000 1.19
@@ -211,7 +211,9 @@
// 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) {
More information about the Scummvm-git-logs
mailing list