mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix initialisation of junctions added to pathfind_history.
Fix initialisation of junctions added to pathfind_history.
This commit is contained in:
parent
c2d9c7a6d4
commit
307ebc38be
|
@ -9715,7 +9715,7 @@ int peep_pathfind_choose_direction(sint16 x, sint16 y, uint8 z, rct_peep *peep)
|
|||
peep->pathfind_history[i].x = x >> 5;
|
||||
peep->pathfind_history[i].y = y >> 5;
|
||||
peep->pathfind_history[i].z = z;
|
||||
peep->pathfind_history[i].direction = 0xF;
|
||||
peep->pathfind_history[i].direction = permitted_edges;
|
||||
peep->pathfind_history[i].direction &= ~(1 << chosen_edge);
|
||||
#if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1
|
||||
if (gPathFindDebug) {
|
||||
|
|
Loading…
Reference in New Issue