From dec8a980a0ceeecc993e2ca999563f7203d6e707 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Fri, 12 Feb 2016 20:22:54 +0000 Subject: [PATCH] Fix mechanics walking past entrances --- src/peep/staff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peep/staff.c b/src/peep/staff.c index e189a4620c..fdf9dd7db1 100644 --- a/src/peep/staff.c +++ b/src/peep/staff.c @@ -1003,7 +1003,7 @@ static uint8 staff_mechanic_direction_path(rct_peep* peep, uint8 validDirections if (chosenTile.x == peep->next_x && chosenTile.y == peep->next_y && z == peep->next_z) { - return direction; + return entranceDirection; } RCT2_GLOBAL(0x00F1AEE0, uint8) = 0;