fix #3204: can't right click track in unowned land

This commit is contained in:
IntelOrca 2016-03-31 22:56:13 +01:00
parent 6f2d91cc7e
commit 1c0a78ace2
1 changed files with 1 additions and 1 deletions

View File

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