From b35b8aa5bb38f9e47ca04ccd9302dd82546de0cd Mon Sep 17 00:00:00 2001 From: zuu Date: Sat, 12 Oct 2013 22:03:13 +0000 Subject: (svn r25848) -Codechange: Refactor check for if a tile is not an edge tile to new IsInnerTile method (cirdan, LordAro) --- src/heightmap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/heightmap.cpp') diff --git a/src/heightmap.cpp b/src/heightmap.cpp index 8f0fac6ad..2f6d14e56 100644 --- a/src/heightmap.cpp +++ b/src/heightmap.cpp @@ -364,8 +364,7 @@ static void GrayscaleToMapHeights(uint img_width, uint img_height, byte *map) SetTileHeight(tile, map[img_row * img_width + img_col] / 16); } /* Only clear the tiles within the map area. */ - if (TileX(tile) != MapMaxX() && TileY(tile) != MapMaxY() && - (!_settings_game.construction.freeform_edges || (TileX(tile) != 0 && TileY(tile) != 0))) { + if (IsInnerTile(tile)) { MakeClear(tile, CLEAR_GRASS, 3); } } -- cgit v1.2.3-54-g00ecf