From 13017568db67ad2df8de5f630b5aa80feb801ddb Mon Sep 17 00:00:00 2001 From: Jeroen D Stout Date: Thu, 11 Jan 2018 02:16:05 +0100 Subject: [PATCH] Prevent peep from being blocked while already on blocked tile --- src/openrct2/peep/Guest.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index 1105c4bbca..6a22a48ed4 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -5251,7 +5251,11 @@ void rct_peep::UpdateWalking() rct_tile_element * path_element = map_get_path_element_at(destination_x / 32, destination_y / 32, next_z); if (path_element && path_element->flags & TILE_ELEMENT_FLAG_BLOCKED_BY_VEHICLE) { - return; + if (!(x >> 5 == destination_x >> 5 && + y >> 5 == destination_y >> 5)) + { + return; + } } uint8 pathingResult;