1
0
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:
zaxcav
2016-08-05 12:00:16 +02:00
parent 34e046df41
commit a768be5e88
4 changed files with 416 additions and 74 deletions

View File

@@ -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;
}