forked from rosebudai/OpenRCT2-Web
Prevent peep from being blocked while already on blocked tile
This commit is contained in:
1 parent
299d2e82ab
commit
13017568db
1 file changed
+5
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user