Fix #1761. Issue caused by or = instead of !=

This commit is contained in:
duncanspumpkin committed 2015-10-15 21:03:29 +01:00
1 parent fdfe52fc19
commit 31e6942ff0
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}
}