Change #8159: Remove now unused town cargo caches without bumping the savegame version
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user