From 18d943533a28dfdf772554ad64027faa6b7b68f0 Mon Sep 17 00:00:00 2001 From: Alexander Overvoorde Date: Mon, 21 Nov 2016 22:54:06 +0100 Subject: [PATCH] Fixes #4808: Add land rights recalculation for loading save games The feature of disabling the land rights buying buttons depends on the land rights being accounted for, but the function that calculates these was not called when loading saved games. Therefore it would often make it impossible to buy land after loading a saved game. --- src/rct1/S4Importer.cpp | 1 + src/rct2/S6Importer.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/rct1/S4Importer.cpp b/src/rct1/S4Importer.cpp index 67fdf52a0c..e417018b79 100644 --- a/src/rct1/S4Importer.cpp +++ b/src/rct1/S4Importer.cpp @@ -157,6 +157,7 @@ public: ImportSavedView(); game_convert_strings_to_utf8(); + map_count_remaining_land_rights(); } private: diff --git a/src/rct2/S6Importer.cpp b/src/rct2/S6Importer.cpp index 330d500023..1e79e75873 100644 --- a/src/rct2/S6Importer.cpp +++ b/src/rct2/S6Importer.cpp @@ -352,6 +352,7 @@ void S6Importer::Import() } map_update_tile_pointers(); game_convert_strings_to_utf8(); + map_count_remaining_land_rights(); if (FixIssues) { game_fix_save_vars();