summaryrefslogtreecommitdiff
path: root/src/landscape.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-05-08 14:43:59 +0000
committerfrosch <frosch@openttd.org>2010-05-08 14:43:59 +0000
commit5b77a63ecfabe3537e10e681fac765fc5c46be10 (patch)
tree427fdfabeabbbc34074102dcc4a3d10e86946edb /src/landscape.cpp
parent173b56b895eb929991d9c83233a2ad95e6b3f82e (diff)
downloadopenttd-5b77a63ecfabe3537e10e681fac765fc5c46be10.tar.xz
(svn r19769) -Fix [FS#3820]: MV_VOID tiles shall have no tropic zone.
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r--src/landscape.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index 2677014f7..25b41d130 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -831,6 +831,8 @@ static void CreateDesertOrRainForest()
for (TileIndex tile = 0; tile != MapSize(); ++tile) {
if ((tile % update_freq) == 0) IncreaseGeneratingWorldProgress(GWP_LANDSCAPE);
+ if (!IsValidTile(tile)) continue;
+
for (data = _make_desert_or_rainforest_data;
data != endof(_make_desert_or_rainforest_data); ++data) {
TileIndex t = AddTileIndexDiffCWrap(tile, *data);
@@ -849,6 +851,8 @@ static void CreateDesertOrRainForest()
for (TileIndex tile = 0; tile != MapSize(); ++tile) {
if ((tile % update_freq) == 0) IncreaseGeneratingWorldProgress(GWP_LANDSCAPE);
+ if (!IsValidTile(tile)) continue;
+
for (data = _make_desert_or_rainforest_data;
data != endof(_make_desert_or_rainforest_data); ++data) {
TileIndex t = AddTileIndexDiffCWrap(tile, *data);