mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 09:14:58 +01:00
Fix the peep path finding
In the heuristic search, tiles in wide path were always being handled as junctions. Changed to handle junctions according to the path thinning. There was no search loop detection. Added loop detection for returning to the starting location and any of the junctions visited in the current search path. Various other optimisations added.
This commit is contained in:
@@ -494,7 +494,7 @@ static rct_peep *park_generate_new_guest()
|
||||
|
||||
peep->destination_tolerence = 5;
|
||||
peep->var_76 = 0;
|
||||
peep->var_78 = spawn.direction;
|
||||
peep->direction = spawn.direction;
|
||||
peep->var_37 = 0;
|
||||
peep->state = PEEP_STATE_ENTERING_PARK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user