diff options
author | dP <dp@dpointer.org> | 2020-05-18 17:32:05 +0300 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-06-28 18:23:59 +0200 |
commit | 7045186594d947b53312a0e72c901f3889757437 (patch) | |
tree | 301e8b29cb7e8c179352a642db29739d938b7085 /src/saveload/afterload.cpp | |
parent | 380fd8cab41bce0954bcd38eba5befe7057c8fa2 (diff) | |
download | openttd-7045186594d947b53312a0e72c901f3889757437.tar.xz |
Change #8159: Remove now unused town cargo caches without bumping the savegame version
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index cc2a671a2..163ded73c 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -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++) { |