[Scummvm-cvs-logs] CVS: scummvm/scumm object.cpp,1.7,1.8 script.cpp,1.5,1.6

Pawe? Ko?odziejski aquadran at users.sourceforge.net
Sun Oct 27 01:07:01 CEST 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv15530

Modified Files:
	object.cpp script.cpp 
Log Message:
removed hardcoded values and increased range of strips

Index: object.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/object.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- object.cpp	23 Oct 2002 03:28:06 -0000	1.7
+++ object.cpp	27 Oct 2002 09:06:20 -0000	1.8
@@ -1298,8 +1298,8 @@
 
 	if (left_strip < 0)
 		left_strip = 0;
-	if (right_strip >= 200)
-		right_strip = 200;
+	if (right_strip >= 240)
+		right_strip = 240;
 
 	for (i = left_strip; i <= right_strip; i++)
 		gdi.resetBackground(top, bottom, i);

Index: script.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- script.cpp	22 Sep 2002 01:17:53 -0000	1.5
+++ script.cpp	27 Oct 2002 09:06:20 -0000	1.6
@@ -473,7 +473,7 @@
 	x2++;
 	y2++;
 
-	if (x > 319)
+	if (x > _realWidth - 1)
 		return;
 	if (x < 0)
 		x = 0;





More information about the Scummvm-git-logs mailing list