mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Allow passing of destination tolerance via SetDestination
This commit is contained in:
@@ -97,8 +97,7 @@ protected:
|
||||
// destination will be picked, to try and get the peep towards the overall pathfinding goal.
|
||||
peep->PeepDirection = moveDir;
|
||||
auto destination = CoordsDirectionDelta[moveDir] + peep->GetLocation();
|
||||
peep->SetDestination(destination);
|
||||
peep->DestinationTolerance = 2;
|
||||
peep->SetDestination(destination, 2);
|
||||
|
||||
// Repeatedly step the peep, until they reach the target position or until the expected number of steps have
|
||||
// elapsed. Each step, check that the tile they are standing on is not marked as forbidden in the test data
|
||||
|
||||
Reference in New Issue
Block a user