Add company rate limit for land area purchasing

This commit is contained in:
Jonathan G Rennison
2018-11-23 18:47:36 +00:00
parent 479a9e31e9
commit 46b1ea81e4
10 changed files with 47 additions and 1 deletions

View File

@@ -3555,6 +3555,12 @@ bool AfterLoadGame()
}
}
if (SlXvIsFeatureMissing(XSLFI_BUY_LAND_RATE_LIMIT)) {
/* Introduced land purchasing limit. */
Company *c;
FOR_ALL_COMPANIES(c) c->purchase_land_limit = _settings_game.construction.purchase_land_frame_burst << 16;
}
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();