[Scummvm-cvs-logs] CVS: scummvm/scumm boxes.cpp,1.15,1.16

Jonathan Gray khalek at users.sourceforge.net
Fri Apr 11 05:58:10 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv6856

Modified Files:
	boxes.cpp 
Log Message:
stop loom pass demo from erroring out

Index: boxes.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/boxes.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- boxes.cpp	8 Apr 2003 19:05:38 -0000	1.15
+++ boxes.cpp	11 Apr 2003 12:57:41 -0000	1.16
@@ -207,7 +207,9 @@
 	byte *ptr = getResourceAddress(rtMatrix, 2);
 	if (!ptr)
 		return NULL;
-	checkRange(ptr[0] - 1, 0, box, "Illegal box %d");
+	// stops pass to adventure loom demo from working properly
+	if (_gameId != GID_MONKEY_EGA)
+		checkRange(ptr[0] - 1, 0, box, "Illegal box %d");
 	if (_features & GF_SMALL_HEADER) {
 		if (_features & GF_AFTER_V3) // GF_OLD256 or GF_AFTER_V3 ?
 			return (Box *)(ptr + box * (SIZEOF_BOX - 2) + 1);





More information about the Scummvm-git-logs mailing list