(svn r25848) -Codechange: Refactor check for if a tile is not an edge tile to new IsInnerTile method (cirdan, LordAro)

This commit is contained in:
zuu
2013-10-12 22:03:13 +00:00
parent d908897918
commit b35b8aa5bb
4 changed files with 21 additions and 10 deletions

View File

@@ -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);
}
}