(svn r24564) -Fix [FS#5312] (r17433): Limiting the inflation did not quite work.

This commit is contained in:
frosch
2012-10-01 19:29:31 +00:00
parent f7a19cfb04
commit aea90e69f6
2 changed files with 11 additions and 2 deletions

View File

@@ -2742,6 +2742,12 @@ bool AfterLoadGame()
FOR_ALL_COMPANIES(c) c->tree_limit = _settings_game.construction.tree_frame_burst << 16;
}
if (IsSavegameVersionBefore(177)) {
/* Fix too high inflation rates */
if (_economy.inflation_prices > MAX_INFLATION) _economy.inflation_prices = MAX_INFLATION;
if (_economy.inflation_payment > MAX_INFLATION) _economy.inflation_payment = MAX_INFLATION;
}
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();