(svn r3665) Add a function to turn a tile into a clear tile

This commit is contained in:
tron
2006-02-24 19:56:24 +00:00
parent f369dcef51
commit f6d48379d8
4 changed files with 18 additions and 19 deletions

View File

@@ -82,8 +82,7 @@ static void GenerateRockyArea(TileIndex end, TileIndex start)
BEGIN_TILE_LOOP(tile, size_x, size_y, TileXY(sx, sy)) {
if (IsTileType(tile, MP_CLEAR) || IsTileType(tile, MP_TREES)) {
SetTileType(tile, MP_CLEAR);
SetClearGroundDensity(tile, CL_ROCKS, 3);
MakeClear(tile, CL_ROCKS, 3);
MarkTileDirtyByTile(tile);
success = true;
}