[Scummvm-cvs-logs] CVS: scummvm/scumm object.cpp,1.200,1.201

Max Horn fingolfin at users.sourceforge.net
Thu Oct 7 14:20:53 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1483

Modified Files:
	object.cpp 
Log Message:
Use proper range for the (screen/local) strip values

Index: object.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/object.cpp,v
retrieving revision 1.200
retrieving revision 1.201
diff -u -d -r1.200 -r1.201
--- object.cpp	7 Oct 2004 16:34:54 -0000	1.200
+++ object.cpp	7 Oct 2004 21:19:37 -0000	1.201
@@ -1556,13 +1556,8 @@
 
 	if (left_strip < 0)
 		left_strip = 0;
-	if (_version >= 7) {
-		if (right_strip > 409)
-			right_strip = 409;
-	} else {
-		if (right_strip >= 200)
-			right_strip = 200;
-	}
+	if (right_strip > gdi._numStrips - 1)
+		right_strip = gdi._numStrips - 1;
 	for (i = left_strip; i <= right_strip; i++)
 		gdi.resetBackground(r.top, r.bottom, i);
 





More information about the Scummvm-git-logs mailing list