Prevent peep from being blocked while already on blocked tile

This commit is contained in:
Jeroen D Stout authored and Ted John committed 2018-06-10 22:59:58 +01:00
1 parent 299d2e82ab
commit 13017568db
1 file changed
+5 -1
+5 -1
View File
@@ -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;