forked from rosebudai/OpenRCT2-Web
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:
1 parent
428f7bd9ec
commit
fa71bbc1b2
7 files changed
+145
-131
No files matched your search
@@ -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