[Scummvm-cvs-logs] CVS: scummvm/sword2 interpreter.cpp,1.46,1.47

Jamieson Christian jamieson630 at users.sourceforge.net
Mon Apr 26 13:29:20 CEST 2004


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

Modified Files:
	interpreter.cpp 
Log Message:
Tweaked a few things to accommodate
MSVC6's idiosyncracies.

Index: interpreter.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/interpreter.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- interpreter.cpp	23 Apr 2004 07:01:38 -0000	1.46
+++ interpreter.cpp	26 Apr 2004 20:28:34 -0000	1.47
@@ -296,6 +296,7 @@
 	int savedStartOfMcode = 0;	// For saving start of mcode commands
 
 	while (runningScript) {
+		int i;
 		int32 a, b;
 		int curCommand, parameter, value; // Command and parameter variables
 		int retVal;
@@ -477,7 +478,7 @@
 
 			// Search the cases
 			foundCase = false;
-			for (int i = 0; i < caseCount && !foundCase; i++) {
+			for (i = 0; i < caseCount && !foundCase; i++) {
 				if (value == (int32) READ_LE_UINT32(code + ip)) {
 					// We have found the case, so lets
 					// jump to it





More information about the Scummvm-git-logs mailing list