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

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Fri Feb 16 05:49:15 CET 2007


Revision: 25621
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25621&view=rev
Author:   dreammaster
Date:     2007-02-15 20:49:15 -0800 (Thu, 15 Feb 2007)

Log Message:
-----------
Bugfix to pathfinder that resulted in some characters bouncing between two rooms

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

Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2007-02-16 03:49:34 UTC (rev 25620)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2007-02-16 04:49:15 UTC (rev 25621)
@@ -3020,7 +3020,7 @@
 	// Get room exit coordinates
 	RoomExitCoordinateData &exitData = res.coordinateList().getEntry(
 		h.roomNumber()).getData(h.currentActions().top().roomNumber());
-	
+
 	if (h.hotspotId() != RATPOUCH_ID) {
 		// Count up the number of characters in the room
 		HotspotList &list = res.activeHotspots();
@@ -3319,8 +3319,8 @@
 	}
 	
 final_step:
-	if (_xPos < 0) add(LEFT, -_xPos);
-	else if (_xPos > 0) add(RIGHT, _xPos);
+	if (_xPos < 0) add(RIGHT, -_xPos);
+	else if (_xPos > 0) add(LEFT, _xPos);
 
 	return true;
 }


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