mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Use Direction type in a bunch of the pathfinding code
This commit is contained in:
@@ -83,8 +83,8 @@ 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 int32_t moveDir = peep_pathfind_choose_direction(*pos, peep);
|
||||
if (moveDir < 0)
|
||||
const Direction moveDir = peep_pathfind_choose_direction(*pos, peep);
|
||||
if (moveDir == INVALID_DIRECTION)
|
||||
{
|
||||
// Couldn't determine a direction to move off in
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user