summaryrefslogtreecommitdiff
path: root/src/landscape.cpp
diff options
context:
space:
mode:
authorYexo <yexo@openttd.org>2009-01-21 02:31:55 +0000
committerYexo <yexo@openttd.org>2009-01-21 02:31:55 +0000
commitdb3ee34b4468aa3448b64e339258760885c5d716 (patch)
tree272533ac91b7bc3ab16c3ee1a997e142f3170a2a /src/landscape.cpp
parent5e7669b539002cb9ec9e608f4601a827b5e9da57 (diff)
downloadopenttd-db3ee34b4468aa3448b64e339258760885c5d716.tar.xz
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r--src/landscape.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index e2e7d2504..900ec71fd 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -690,9 +690,9 @@ void InitializeLandscape()
uint sizex = MapSizeX();
uint y;
- for (y = 0; y < maxy; y++) {
+ for (y = _settings_game.construction.freeform_edges ? 1 : 0; y < maxy; y++) {
uint x;
- for (x = 0; x < maxx; x++) {
+ for (x = _settings_game.construction.freeform_edges ? 1 : 0; x < maxx; x++) {
MakeClear(sizex * y + x, CLEAR_GRASS, 3);
SetTileHeight(sizex * y + x, 0);
SetTropicZone(sizex * y + x, TROPICZONE_NORMAL);