[Scummvm-cvs-logs] SF.net SVN: scummvm: [26466] scummvm/trunk/engines/lure/hotspots.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sat Apr 14 07:02:13 CEST 2007


Revision: 26466
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26466&view=rev
Author:   eriktorbjorn
Date:     2007-04-13 22:02:12 -0700 (Fri, 13 Apr 2007)

Log Message:
-----------
Fixed warning.

Modified Paths:
--------------
    scummvm/trunk/engines/lure/hotspots.cpp

Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2007-04-14 03:50:27 UTC (rev 26465)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2007-04-14 05:02:12 UTC (rev 26466)
@@ -925,12 +925,12 @@
 	
 	// Scan backwards from the right side for 4 free blocks along the bar line block 
 	int numFree = 0;
-	for (int x = ROOM_PATHS_WIDTH - 1; x >= 0; --x) {
-		if (paths.isOccupied(x, barEntry.gridLine))
+	for (int xp = ROOM_PATHS_WIDTH - 1; xp >= 0; --xp) {
+		if (paths.isOccupied(xp, barEntry.gridLine))
 			numFree = 0;
 		else if (++numFree == 4) {
 			// Start character walking to the found position
-			walkTo(x * 8, (barEntry.gridLine << 3) + 8);
+			walkTo(xp * 8, (barEntry.gridLine << 3) + 8);
 			return false;
 		}
 	}


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