diff src/saveload/afterload.cpp @ 15140:8676e88fecb0 draft

(svn r19769) -Fix [FS#3820]: MV_VOID tiles shall have no tropic zone.
author frosch <frosch@openttd.org>
date Sat, 08 May 2010 14:43:59 +0000
parents e0fd48f3f61b
children 432bee68ef70
line wrap: on
line diff
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -2101,6 +2101,13 @@
 		}
 	}
 
+	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();