summaryrefslogtreecommitdiff
path: root/src/tgp.cpp
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-10-12 22:03:13 +0000
committerzuu <zuu@openttd.org>2013-10-12 22:03:13 +0000
commitb35b8aa5bb38f9e47ca04ccd9302dd82546de0cd (patch)
tree071b2d96066a605c5bf65ede95945ea8738a2171 /src/tgp.cpp
parentd90889791826633d9f18301ead41a5d4bc77e215 (diff)
downloadopenttd-b35b8aa5bb38f9e47ca04ccd9302dd82546de0cd.tar.xz
(svn r25848) -Codechange: Refactor check for if a tile is not an edge tile to new IsInnerTile method (cirdan, LordAro)
Diffstat (limited to 'src/tgp.cpp')
-rw-r--r--src/tgp.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tgp.cpp b/src/tgp.cpp
index 6d17fd853..4cbde2d82 100644
--- a/src/tgp.cpp
+++ b/src/tgp.cpp
@@ -950,8 +950,7 @@ static void TgenSetTileHeight(TileIndex tile, int height)
SetTileHeight(tile, height);
/* 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);
}
}