[Scummvm-cvs-logs] CVS: scummvm/scumm script_v100he.cpp,2.154,2.155 script_v72he.cpp,2.295,2.296

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Sun May 22 08:56:05 CEST 2005


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

Modified Files:
	script_v100he.cpp script_v72he.cpp 
Log Message:
'len' is not initialized at this point, but if the purpose is to reset tmp3
to its original value, this should do just as well. But I don't know where
it's used, so I can't really test this.


Index: script_v100he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v100he.cpp,v
retrieving revision 2.154
retrieving revision 2.155
diff -u -d -r2.154 -r2.155
--- script_v100he.cpp	22 May 2005 10:38:57 -0000	2.154
+++ script_v100he.cpp	22 May 2005 15:52:39 -0000	2.155
@@ -677,14 +677,14 @@
 
 		offs = (b >= c) ? 1 : -1;
 		tmp2 = c;
-		tmp3 = c - b + 1;;
+		tmp3 = c - b + 1;
 		while (dim2start <= dim2end) {
 			tmp = dim1start;
 			while (tmp <= dim1end) {
 				writeArray(array, dim2start, tmp, tmp2);
 				if (--tmp3 == 0) {
 					tmp2 = c;
-					tmp3 = len;
+					tmp3 = c - b + 1;
 				} else {
 					tmp2 += offs;
 				}

Index: script_v72he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v72he.cpp,v
retrieving revision 2.295
retrieving revision 2.296
diff -u -d -r2.295 -r2.296
--- script_v72he.cpp	22 May 2005 10:04:10 -0000	2.295
+++ script_v72he.cpp	22 May 2005 15:52:39 -0000	2.296
@@ -1515,14 +1515,14 @@
 
 		offs = (b >= c) ? 1 : -1;
 		tmp2 = c;
-		tmp3 = c - b + 1;;
+		tmp3 = c - b + 1;
 		while (dim2start <= dim2end) {
 			tmp = dim1start;
 			while (tmp <= dim1end) {
 				writeArray(array, dim2start, tmp, tmp2);
 				if (--tmp3 == 0) {
 					tmp2 = c;
-					tmp3 = len;
+					tmp3 = c - b + 1;
 				} else {
 					tmp2 += offs;
 				}





More information about the Scummvm-git-logs mailing list