From e3c69b7c4ebebba0aa85ef41ff6627705acb1db5 Mon Sep 17 00:00:00 2001 From: Yexo Date: Wed, 21 Jan 2009 02:31:55 +0000 Subject: (svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map. --- src/landscape.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/landscape.cpp') 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); -- cgit v1.2.3-54-g00ecf