diff options
author | Paul Gilbert | 2011-04-08 21:35:58 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-04-08 21:35:58 +1000 |
commit | 0240838f649addf9da40d0b388fc247352776874 (patch) | |
tree | 17ad169c192431f2ee931a83061f7d7309740471 /engines/tsage | |
parent | 92aac3addc190f19c4fd063fb825651c9f31f725 (diff) | |
download | scummvm-rg350-0240838f649addf9da40d0b388fc247352776874.tar.gz scummvm-rg350-0240838f649addf9da40d0b388fc247352776874.tar.bz2 scummvm-rg350-0240838f649addf9da40d0b388fc247352776874.zip |
TSAGE: Fixed problem with pathfinder add extra unnecessary steps
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/core.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index cbe9fd37b2..6add3b3d78 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -640,7 +640,7 @@ void PlayerMover::pathfind(Common::Point *routeList, Common::Point srcPos, Commo continue; Common::Point tempPt; - if (sub_F8E5(_globals->_walkRegions._field18[0]._pt1, _globals->_walkRegions._field18[0]._pt1, + if (sub_F8E5(_globals->_walkRegions._field18[0]._pt1, _globals->_walkRegions._field18[1]._pt1, _globals->_walkRegions._field18[var10]._pt1, _globals->_walkRegions._field18[var10]._pt2, &tempPt)) { // Add point to the route list _globals->_walkRegions._field18[0]._pt1 = tempPt; @@ -666,6 +666,7 @@ void PlayerMover::pathfind(Common::Point *routeList, Common::Point srcPos, Commo _globals->_walkRegions._field18[var10]._pt1, 1, objPos); } + _globals->_walkRegions._field18[0]._pt1 = objPos; *routeList++ = objPos; } } |