Fix #17657: Grid disappears when buying land rights (#17793)

This commit is contained in:
Henry Cheng 2022-10-25 15:46:31 -04:00 committed by GitHub
parent 23a8914de7
commit 93cdfbf26a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@
- Change: [#18381] Convert custom invisible paths to the built-in ones.
- Fix: [#14312] Research ride type message incorrect.
- Fix: [#17316] Sides of River Rapids corners overlay other parts of the track.
- Fix: [#17657] When switching from buying land rights to buying construction rights, grid disables and won't re-enable afterwards.
- Fix: [#17763] Missing validation on invalid characters in file name.
- Fix: [#17853] Invention name tears while being dragged.
- Fix: [#18064] Unable to dismiss notification messages.

View File

@ -80,6 +80,7 @@ public:
void OnClose() override
{
hide_gridlines();
if (gLandRemainingConstructionSales == 0)
{
hide_construction_rights();
@ -318,7 +319,6 @@ public:
void OnToolAbort(WidgetIndex widgetIndex) override
{
hide_gridlines();
if (_landRightsMode == LAND_RIGHTS_MODE_BUY_LAND)
{
hide_land_rights();