diff options
author | frosch <frosch@openttd.org> | 2010-05-08 14:43:59 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-05-08 14:43:59 +0000 |
commit | 5b77a63ecfabe3537e10e681fac765fc5c46be10 (patch) | |
tree | 427fdfabeabbbc34074102dcc4a3d10e86946edb /src/saveload/afterload.cpp | |
parent | 173b56b895eb929991d9c83233a2ad95e6b3f82e (diff) | |
download | openttd-5b77a63ecfabe3537e10e681fac765fc5c46be10.tar.xz |
(svn r19769) -Fix [FS#3820]: MV_VOID tiles shall have no tropic zone.
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index c8e2e5e73..4ff915742 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -2101,6 +2101,13 @@ bool AfterLoadGame() } } + if (CheckSavegameVersion(141)) { + for (TileIndex t = 0; t < map_size; t++) { + /* Reset tropic zone for VOID tiles, they shall not have any. */ + if (IsTileType(t, MP_VOID)) SetTropicZone(t, TROPICZONE_NORMAL); + } + } + /* Road stops is 'only' updating some caches */ AfterLoadRoadStops(); AfterLoadLabelMaps(); |