aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2007-02-16 04:49:15 +0000
committerPaul Gilbert2007-02-16 04:49:15 +0000
commit75c74574e8ea91288723ca1830f5f814cb9a566e (patch)
tree87d60157ecec9ede0c2c3eac3a4a2d022864aade /engines/lure
parent97bb2336634a252b6d0b249ae359514a12379bd0 (diff)
downloadscummvm-rg350-75c74574e8ea91288723ca1830f5f814cb9a566e.tar.gz
scummvm-rg350-75c74574e8ea91288723ca1830f5f814cb9a566e.tar.bz2
scummvm-rg350-75c74574e8ea91288723ca1830f5f814cb9a566e.zip
Bugfix to pathfinder that resulted in some characters bouncing between two rooms
svn-id: r25621
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/hotspots.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index c628fa7baa..14df5ce2dc 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -3020,7 +3020,7 @@ void HotspotTickHandlers::npcRoomChange(Hotspot &h) {
// 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 @@ bool PathFinder::process() {
}
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;
}