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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user