[Scummvm-cvs-logs] SF.net SVN: scummvm: [22008] scummvm/trunk/engines/simon/items.cpp

kirben at users.sourceforge.net kirben at users.sourceforge.net
Tue Apr 18 06:33:03 CEST 2006


Revision: 22008
Author:   kirben
Date:     2006-04-18 06:32:51 -0700 (Tue, 18 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22008&view=rev

Log Message:
-----------
Correct increment for checkPaths script opcode in FF

Modified Paths:
--------------
    scummvm/trunk/engines/simon/items.cpp
Modified: scummvm/trunk/engines/simon/items.cpp
===================================================================
--- scummvm/trunk/engines/simon/items.cpp	2006-04-18 13:28:42 UTC (rev 22007)
+++ scummvm/trunk/engines/simon/items.cpp	2006-04-18 13:32:51 UTC (rev 22008)
@@ -1941,12 +1941,12 @@
 
 void SimonEngine::o3_checkPaths() {
 	// 173 check paths
-	int val, count;
+	int i, val, count;
 	const uint8 *pathVal1 = _pathValues1;
 	bool result = false;
 
 	count = _variableArray2[38];
-	while (count) {
+	for (i = 0; i < count; i++) {
 		val = pathVal1[2];
 		if (val == _variableArray2[50] ||
 			val == _variableArray2[51] ||
@@ -1969,9 +1969,7 @@
 				result = true;
 				break;
 		}
-
-		count--;
-		pathVal1++;
+		pathVal1 += 4;
 	}
 
 	_variableArray2[57] = result;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list