summaryrefslogtreecommitdiff
path: root/src/landscape.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-17 20:33:13 +0000
committeryexo <yexo@openttd.org>2009-02-17 20:33:13 +0000
commite5d6f3ef2eeba65a417ce8d43437b1424b0a4b8f (patch)
tree1538b80b6852b96408f79e735a28f6efc4b0c285 /src/landscape.cpp
parent5d0e1f70de7aa2d8b9f19348ab846f1382154162 (diff)
downloadopenttd-e5d6f3ef2eeba65a417ce8d43437b1424b0a4b8f.tar.xz
(svn r15511) -Fix [FS#2641] (r15190): Generating a map with the original map generator with freeform edges on resulted in an assert.
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 db0b30696..92e2ba7d3 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -856,6 +856,10 @@ void GenerateLandscape(byte mode)
SetGeneratingWorldProgress(GWP_LANDSCAPE, (_settings_game.game_creation.landscape == LT_TROPIC) ? 3 + gwp_desert_amount : 3);
GenerateTerrainPerlin();
} else {
+ if (_settings_game.construction.freeform_edges) {
+ for (uint x = 0; x < MapSizeX(); x++) MakeVoid(TileXY(x, 0));
+ for (uint y = 0; y < MapSizeY(); y++) MakeVoid(TileXY(0, y));
+ }
switch (_settings_game.game_creation.landscape) {
case LT_ARCTIC: {
SetGeneratingWorldProgress(GWP_LANDSCAPE, 2);