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

fix unable to right click to remove scenery

regression introduced f0adf90660
This commit is contained in:
IntelOrca
2016-01-05 20:53:08 +00:00
parent ee9c695902
commit e94b7d5338

View File

@@ -272,9 +272,11 @@ int viewport_interaction_get_item_right(int x, int y, viewport_interaction_info
return info->type;
}
if ((gInputFlags & INPUT_FLAG_6) && (gInputFlags & INPUT_FLAG_TOOL_ACTIVE))
if (window_find_by_class(WC_RIDE_CONSTRUCTION) == NULL && window_find_by_class(WC_FOOTPATH) == NULL)
if (!(gInputFlags & INPUT_FLAG_6) || !(gInputFlags & INPUT_FLAG_TOOL_ACTIVE)) {
if (window_find_by_class(WC_RIDE_CONSTRUCTION) == NULL && window_find_by_class(WC_FOOTPATH) == NULL) {
return info->type = VIEWPORT_INTERACTION_ITEM_NONE;
}
}
switch (info->type) {
case VIEWPORT_INTERACTION_ITEM_SCENERY: