Fix #18469: Land rights window issues (#18662)

Global variables regarding land ownership weren't initialized upon loading a .park file. This would lead to different bugs when using the 'Land rights' window, like markers remaining visible indefinitely and not being able to select the type of land rights to buy.
This commit is contained in:
Rik Smeets 2022-11-23 20:02:34 +01:00 committed by GitHub
parent 9855ff5cac
commit 0ea5f343af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,7 @@
- Fix: [#18442] About window background is clickable.
- Fix: [#18449] [Plugin] Change type of listview widgets from 'scroll_view' to 'listview'.
- Fix: [#18453] Slow walking guests don't get across level crossings in time.
- Fix: [#18469] Land rights window buttons incorrectly disabled and markers remain visible indefinitely.
- Fix: [#18459] Highlight path issues hides fences for paths with additions.
- Fix: [#18606] JSON objects do not take priority over the DAT files they supersede.
- Fix: [#18620] [Plugin] Crash when reading widget properties from windows that have both static and tab widgets.

View File

@ -453,6 +453,8 @@ void game_fix_save_vars()
ParkEntranceFixLocations();
UpdateConsolidatedPatrolAreas();
MapCountRemainingLandRights();
}
void game_load_init()

View File

@ -196,7 +196,6 @@ namespace RCT1
SetDefaultNames();
determine_ride_entrance_and_exit_locations();
MapCountRemainingLandRights();
research_determine_first_of_type();
CheatsReset();

View File

@ -501,7 +501,6 @@ namespace RCT2
// Fix and set dynamic variables
MapStripGhostFlagFromElements();
ConvertScenarioStringsToUTF8();
MapCountRemainingLandRights();
determine_ride_entrance_and_exit_locations();
park.Name = GetUserString(_s6.park_name);