forked from mirror/OpenTTD
(svn r3665) Add a function to turn a tile into a clear tile
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user