[Scummvm-cvs-logs] CVS: scummvm/sky intro.cpp,1.11,1.12

Pawel Kolodziejski aquadran at users.sourceforge.net
Mon Apr 28 11:20:13 CEST 2003


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv28632/sky

Modified Files:
	intro.cpp 
Log Message:
fixed two offsets for V2 and two warnings

Index: intro.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/intro.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- intro.cpp	28 Apr 2003 15:41:33 -0000	1.11
+++ intro.cpp	28 Apr 2003 18:19:48 -0000	1.12
@@ -478,7 +478,9 @@
 	//save current screen contents
 	byte *savePtr = (byte *)_workScreen + startPos;
 
-	for (unsigned int i = 0; i < height; i++) {
+	uint i, j;
+
+	for (i = 0; i < height; i++) {
 		memcpy(saveBuf, savePtr, width);
 		saveBuf += width;
 		savePtr += GAME_SCREEN_WIDTH;
@@ -489,11 +491,11 @@
 	byte *textBuf = _introTextSpace + sizeof(struct dataFileHeader);
 	byte *curPos = (byte *)_workScreen + startPos;
 
-	for (unsigned int i = 0; i < height; i++) {
+	for (i = 0; i < height; i++) {
 
 		byte *prevPos = curPos;
 
-		for (unsigned int j = 0; j < width; j++) {
+		for (j = 0; j < width; j++) {
 
 			uint8 pixel = *textBuf++;
 			if (pixel) 





More information about the Scummvm-git-logs mailing list