Change #8159: Remove now unused town cargo caches without bumping the savegame version

This commit is contained in:
dP
2020-05-18 17:32:05 +03:00
committed by Niels Martin Hansen
parent 380fd8cab4
commit 7045186594
5 changed files with 16 additions and 128 deletions

View File

@@ -2830,18 +2830,6 @@ bool AfterLoadGame()
* which is done by StartupEngines(). */
if (gcf_res != GLC_ALL_GOOD) StartupEngines();
if (IsSavegameVersionBefore(SLV_166)) {
/* Update cargo acceptance map of towns. */
for (TileIndex t = 0; t < map_size; t++) {
if (!IsTileType(t, MP_HOUSE)) continue;
Town::Get(GetTownIndex(t))->cargo_accepted.Add(t);
}
for (Town *town : Town::Iterate()) {
UpdateTownCargoes(town);
}
}
/* The road owner of standard road stops was not properly accounted for. */
if (IsSavegameVersionBefore(SLV_172)) {
for (TileIndex t = 0; t < map_size; t++) {