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

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Tue Jan 8 07:18:33 CET 2008


Revision: 30340
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30340&view=rev
Author:   dreammaster
Date:     2008-01-07 22:18:33 -0800 (Mon, 07 Jan 2008)

Log Message:
-----------
Changed method parameter name to prevent shadowing warning

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

Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2008-01-08 06:13:55 UTC (rev 30339)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2008-01-08 06:18:33 UTC (rev 30340)
@@ -1077,7 +1077,7 @@
 	return false;
 }
 
-bool Hotspot::characterWalkingCheck(uint16 hotspotId) {
+bool Hotspot::characterWalkingCheck(uint16 id) {
 	Resources &res = Resources::getReference();
 	int16 xp, yp;
 	bool altFlag;
@@ -1089,7 +1089,7 @@
 	_walkFlag = true;
 	altFlag = false;
 
-	switch (hotspotId) {
+	switch (id) {
 	case 997:
 		xp = 169; yp = 146;
 		altFlag = true;
@@ -1104,10 +1104,10 @@
 		break;
 
 	default:
-		hotspot = res.getHotspot(hotspotId);
+		hotspot = res.getHotspot(id);
 		if (hotspot == NULL) {
 			// Should never come here, as all other constants are handled
-			warning("characterWalkingCheck done on unknown hotspot Id %xh", hotspotId);
+			warning("characterWalkingCheck done on unknown hotspot Id %xh", id);
 			xp = 78; yp = 162;
 		} else if ((hotspot->walkX == 0) && (hotspot->walkY == 0)) {
 			// The hotspot doesn't have any walk co-ordinates

Modified: scummvm/trunk/engines/lure/hotspots.h
===================================================================
--- scummvm/trunk/engines/lure/hotspots.h	2008-01-08 06:13:55 UTC (rev 30339)
+++ scummvm/trunk/engines/lure/hotspots.h	2008-01-08 06:18:33 UTC (rev 30340)
@@ -304,7 +304,7 @@
 	HotspotPrecheckResult actionPrecheck(HotspotData *hotspot);
 	BarPlaceResult getBarPlace();
 	bool findClearBarPlace();
-	bool characterWalkingCheck(uint16 hotspotId);
+	bool characterWalkingCheck(uint16 id);
 	bool doorCloseCheck(uint16 doorId);
 	void resetDirection();
 


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