From f000e885d350e64e69c7159953944a950ca36b36 Mon Sep 17 00:00:00 2001 From: ZehM4tt Date: Sun, 9 Jul 2017 02:57:37 +0200 Subject: [PATCH] Fix desync with "Disable clearance check" while placing rides with footpaths. Refactored single constant to named flags. --- src/openrct2/world/footpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/world/footpath.c b/src/openrct2/world/footpath.c index ed104c11c7..c290ee3483 100644 --- a/src/openrct2/world/footpath.c +++ b/src/openrct2/world/footpath.c @@ -510,7 +510,7 @@ static money32 footpath_place_from_track(sint32 type, sint32 x, sint32 y, sint32 return MONEY32_UNDEFINED; } - if (flags & GAME_COMMAND_FLAG_APPLY) + if ((flags & GAME_COMMAND_FLAG_APPLY) && !(flags & GAME_COMMAND_FLAG_GHOST)) footpath_interrupt_peeps(x, y, z * 8); gFootpathPrice = 0; @@ -1251,7 +1251,7 @@ static void loc_6A6D7E( footpath_queue_chain_push(mapElement->properties.path.ride_index); } } - if (!(flags & 0x48)) { + if (!(flags & (GAME_COMMAND_FLAG_GHOST | GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED))) { footpath_interrupt_peeps(x, y, mapElement->base_height * 8); } map_invalidate_element(x, y, mapElement);