1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

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

This commit is contained in:
duncanspumpkin
2015-10-15 21:03:29 +01:00
parent fdfe52fc19
commit 31e6942ff0

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;
}
}