diff options
author | tron <tron@openttd.org> | 2006-06-07 19:35:21 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-06-07 19:35:21 +0000 |
commit | be88e269b918b365695e84cfa962e8d21b98e759 (patch) | |
tree | 5a6fb4aa93546ad194301d231de10ba5370ccc6f /terraform_gui.c | |
parent | ace071529e2116f92aeec50d3bac0f95953b129b (diff) | |
download | openttd-be88e269b918b365695e84cfa962e8d21b98e759.tar.xz |
(svn r5155) - Remove the bridge branch merge (revision r5070)
Diffstat (limited to 'terraform_gui.c')
-rw-r--r-- | terraform_gui.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/terraform_gui.c b/terraform_gui.c index 571f1298e..72b2a53a7 100644 --- a/terraform_gui.c +++ b/terraform_gui.c @@ -2,7 +2,6 @@ #include "stdafx.h" #include "openttd.h" -#include "bridge_map.h" #include "clear_map.h" #include "table/sprites.h" #include "table/strings.h" @@ -82,20 +81,11 @@ static void GenerateRockyArea(TileIndex end, TileIndex start) size_y = (ey - sy) + 1; BEGIN_TILE_LOOP(tile, size_x, size_y, TileXY(sx, sy)) { - switch (GetTileType(tile)) { - case MP_CLEAR: - MakeClear(tile, CLEAR_ROCKS, 3); - break; - - case MP_TREES: - MakeClear(tile, CLEAR_ROCKS, 3); - ClearBridgeMiddle(tile); - break; - - default: continue; + if (IsTileType(tile, MP_CLEAR) || IsTileType(tile, MP_TREES)) { + MakeClear(tile, CLEAR_ROCKS, 3); + MarkTileDirtyByTile(tile); + success = true; } - MarkTileDirtyByTile(tile); - success = true; } END_TILE_LOOP(tile, size_x, size_y, 0); if (success) SndPlayTileFx(SND_1F_SPLAT, end); |