mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Remove direct access to DirectionX and DirectionY
This commit is contained in:
@@ -96,8 +96,8 @@ protected:
|
||||
// tile away. Stepping the peep will move them towards their destination, and once they reach it, a new
|
||||
// destination will be picked, to try and get the peep towards the overall pathfinding goal.
|
||||
peep->PeepDirection = moveDir;
|
||||
peep->DestinationX = peep->x + CoordsDirectionDelta[moveDir].x;
|
||||
peep->DestinationY = peep->y + CoordsDirectionDelta[moveDir].y;
|
||||
auto destination = CoordsDirectionDelta[moveDir] + peep->GetLocation();
|
||||
peep->SetDestination(destination);
|
||||
peep->DestinationTolerance = 2;
|
||||
|
||||
// Repeatedly step the peep, until they reach the target position or until the expected number of steps have
|
||||
|
||||
Reference in New Issue
Block a user