mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 01:08:25 +00:00
TSAGE: Fixed problem with pathfinder add extra unnecessary steps
This commit is contained in:
parent
92aac3addc
commit
0240838f64
@ -640,7 +640,7 @@ void PlayerMover::pathfind(Common::Point *routeList, Common::Point srcPos, Commo
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
Common::Point tempPt;
|
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)) {
|
_globals->_walkRegions._field18[var10]._pt1, _globals->_walkRegions._field18[var10]._pt2, &tempPt)) {
|
||||||
// Add point to the route list
|
// Add point to the route list
|
||||||
_globals->_walkRegions._field18[0]._pt1 = tempPt;
|
_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[var10]._pt1, 1, objPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_globals->_walkRegions._field18[0]._pt1 = objPos;
|
||||||
*routeList++ = objPos;
|
*routeList++ = objPos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user