mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Part of pathfinding rework
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
|
||||
static std::ostream& operator<<(std::ostream& os, const TileCoordsXYZ& coords)
|
||||
{
|
||||
return os << "(" << coords.x << ", " << coords.y << ", " << coords.z << ")";
|
||||
@@ -84,7 +85,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 = peep_pathfind_choose_direction(*pos, peep);
|
||||
const Direction moveDir = gGuestPathfinder->peep_pathfind_choose_direction(*pos, peep);
|
||||
if (moveDir == INVALID_DIRECTION)
|
||||
{
|
||||
// Couldn't determine a direction to move off in
|
||||
|
||||
Reference in New Issue
Block a user