mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Implement requested changes
- Change the GuestPathfinder object to a smart pointer - Improved function signatures - Added javadoc comments to the abstract base class - Converted pointers to references in pathfinding function calls
This commit is contained in:
@@ -84,7 +84,7 @@ protected:
|
||||
// Pick the direction the peep should initially move in, given the goal position.
|
||||
// This will also store the goal position and initialize pathfinding data for the peep.
|
||||
gPeepPathFindGoalPosition = goal;
|
||||
const Direction moveDir = gGuestPathfinder->peep_pathfind_choose_direction(*pos, peep);
|
||||
const Direction moveDir = gGuestPathfinder->ChooseDirection(*pos, *peep);
|
||||
if (moveDir == INVALID_DIRECTION)
|
||||
{
|
||||
// Couldn't determine a direction to move off in
|
||||
|
||||
Reference in New Issue
Block a user