1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #4748: No way to see owned rights after #4701

This partially reverts #4701 - the land rights button in the park window will always be visible, and if no construction rights are available to buy, all owned rights will be displayed.
This commit is contained in:
Richard Jenkins
2017-05-06 22:53:19 +01:00
committed by GitHub
2 changed files with 6 additions and 9 deletions

View File

@@ -114,10 +114,16 @@ void window_land_rights_open()
gWaterToolLowerCost = MONEY32_UNDEFINED;
show_land_rights();
if (gLandRemainingConstructionSales == 0) {
show_construction_rights();
}
}
static void window_land_rights_close(rct_window *w)
{
hide_construction_rights();
// If the tool wasn't changed, turn tool off
if (land_rights_tool_is_active())
tool_cancel();

View File

@@ -1035,15 +1035,6 @@ static void window_park_entrance_invalidate(rct_window *w)
window_park_entrance_widgets[i].bottom = height + 23;
height += 24;
}
// Disable land rights button if there's no more construction/ownership for sale
if (gLandRemainingOwnershipSales == 0 && gLandRemainingConstructionSales == 0) {
w->disabled_widgets |= (1 << WIDX_BUY_LAND_RIGHTS);
window_park_entrance_widgets[WIDX_BUY_LAND_RIGHTS].tooltip = STR_NO_LAND_OR_CONSTRUCTION_RIGHTS_FOR_SALE_TIP;
} else {
w->disabled_widgets &= ~(1 << WIDX_BUY_LAND_RIGHTS);
window_park_entrance_widgets[WIDX_BUY_LAND_RIGHTS].tooltip = STR_BUY_LAND_AND_CONSTRUCTION_RIGHTS_TIP;
}
}
/**