[Scummvm-cvs-logs] CVS: scummvm/sword1 menu.cpp,1.23,1.24 sword1.cpp,1.73,1.74

Nicolas Bacca arisme at users.sourceforge.net
Fri Dec 10 18:31:01 CET 2004


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

Modified Files:
	menu.cpp sword1.cpp 
Log Message:
Fix dumb CE compiler

Index: menu.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/menu.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- menu.cpp	18 Nov 2004 17:48:50 -0000	1.23
+++ menu.cpp	11 Dec 2004 00:37:05 -0000	1.24
@@ -104,12 +104,13 @@
 }
 
 Menu::~Menu(void) {
+	int i;
 	// the menu may be open, so delete the icons
-	for (int i = 0; i < TOTAL_pockets; i++) {
+	for (i = 0; i < TOTAL_pockets; i++) {
 		delete _objects[i];
 		_objects[i] = NULL;
 	}
-	for (int i = 0; i < 16; i++) {
+	for (i = 0; i < 16; i++) {
 		delete _subjects[i];
 		_subjects[i] = NULL;
 	}

Index: sword1.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/sword1.cpp,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- sword1.cpp	10 Dec 2004 17:55:03 -0000	1.73
+++ sword1.cpp	11 Dec 2004 00:37:05 -0000	1.74
@@ -87,14 +87,15 @@
 }
 
 DetectedGameList Engine_SWORD1_detectGames(const FSList &fslist) {
+	int i;
 	DetectedGameList detectedGames;
 	bool filesFound[NUM_FILES_TO_CHECK];
-	for (int i = 0; i < NUM_FILES_TO_CHECK; i++)
+	for (i = 0; i < NUM_FILES_TO_CHECK; i++)
 		filesFound[i] = false;
 
 	Sword1CheckDirectory(fslist, filesFound);
 	bool mainFilesFound = true;
-	for (int i = 0; i < NUM_FILES_TO_CHECK -1; i++)
+	for (i = 0; i < NUM_FILES_TO_CHECK -1; i++)
 		if (!filesFound[i])
 			mainFilesFound = false;
 





More information about the Scummvm-git-logs mailing list