diff options
author | Paul Gilbert | 2007-02-16 04:49:15 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-02-16 04:49:15 +0000 |
commit | 75c74574e8ea91288723ca1830f5f814cb9a566e (patch) | |
tree | 87d60157ecec9ede0c2c3eac3a4a2d022864aade /engines/lure | |
parent | 97bb2336634a252b6d0b249ae359514a12379bd0 (diff) | |
download | scummvm-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.cpp | 6 |
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; } |