summaryrefslogtreecommitdiff
path: root/src/heightmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/heightmap.cpp')
-rw-r--r--src/heightmap.cpp3
1 files changed, 1 insertions, 2 deletions
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);
}
}