diff options
author | Paul Gilbert | 2011-02-16 00:11:17 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-02-16 00:11:17 +1100 |
commit | acc8e6319aa8ac031ccb964ef1d3881d0ad9d225 (patch) | |
tree | ff03c31f367e0cf839c1e289a5b8a238831326e1 | |
parent | 2f3d3d3d9cf2a5e87f056a3539560dd0807d017b (diff) | |
download | scummvm-rg350-acc8e6319aa8ac031ccb964ef1d3881d0ad9d225.tar.gz scummvm-rg350-acc8e6319aa8ac031ccb964ef1d3881d0ad9d225.tar.bz2 scummvm-rg350-acc8e6319aa8ac031ccb964ef1d3881d0ad9d225.zip |
TSAGE: Yet another pathfinding bugfix
-rw-r--r-- | engines/tsage/core.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index 8906da3194..aa673d0584 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -630,9 +630,9 @@ void PlayerMover::pathfind(Common::Point *routeList, Common::Point srcPos, Commo int var10 = tempList[listIndex]; int var12 = tempList[listIndex + 1]; - if (!sub_F8E5(_globals->_walkRegions._field18[0]._pt1, _globals->_walkRegions._field18[var12]._pt1, + if (sub_F8E5(_globals->_walkRegions._field18[0]._pt1, _globals->_walkRegions._field18[var12]._pt1, _globals->_walkRegions._field18[var10]._pt1, _globals->_walkRegions._field18[var10]._pt2) && - !sub_F8E5(_globals->_walkRegions._field18[0]._pt1, _globals->_walkRegions._field18[var12]._pt2, + sub_F8E5(_globals->_walkRegions._field18[0]._pt1, _globals->_walkRegions._field18[var12]._pt2, _globals->_walkRegions._field18[var10]._pt1, _globals->_walkRegions._field18[var10]._pt2)) continue; @@ -668,7 +668,7 @@ void PlayerMover::pathfind(Common::Point *routeList, Common::Point srcPos, Commo } // Add in the route entry - *routeList++ = _globals->_walkRegions._field18[idx]._pt1; + *routeList++ = _globals->_walkRegions._field18[1]._pt1; } // Mark the end of the path |