mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix #3204: can't right click track in unowned land
This commit is contained in:
parent
6f2d91cc7e
commit
1c0a78ace2
|
@ -222,7 +222,7 @@ int viewport_interaction_get_item_right(int x, int y, viewport_interaction_info
|
|||
} else if (mapElement->properties.track.type == 1 || mapElement->properties.track.type == 2 || mapElement->properties.track.type == 3) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_TOOLTIP_ARGS + 2, uint16) = 1333;
|
||||
} else {
|
||||
if (!map_is_location_owned(info->x, info->y, mapElement->base_height << 4))
|
||||
if (!gCheatsSandboxMode && !map_is_location_owned(info->x, info->y, mapElement->base_height << 4))
|
||||
return info->type = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_TOOLTIP_ARGS + 2, uint16) = ride->name;
|
||||
|
|
Loading…
Reference in New Issue