From 31e6942ff09c452256dcbe4378cd261896b8a2fb Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Thu, 15 Oct 2015 21:03:29 +0100 Subject: [PATCH] Fix #1761. Issue caused by or = instead of != --- src/world/footpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/footpath.c b/src/world/footpath.c index ac0422851d..bbf281036e 100644 --- a/src/world/footpath.c +++ b/src/world/footpath.c @@ -1413,9 +1413,9 @@ static void footpath_unown(int x, int y, rct_map_element *pathElement) int ownershipUnk = 0; int z = pathElement->base_height; rct_map_element *surfaceElement = map_get_surface_element_at(x >> 5, y >> 5); - if (surfaceElement->base_height |= z) { + if (surfaceElement->base_height != z) { z -= 2; - if (surfaceElement->base_height |= z) { + if (surfaceElement->base_height != z) { ownershipUnk = (surfaceElement->properties.surface.ownership & 0xCF) >> 4; } }