1
0
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:
LordOfLunacy
2022-05-14 15:28:24 -04:00
parent 428f7bd9ec
commit fa71bbc1b2
7 changed files with 145 additions and 131 deletions

View File

@@ -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