summaryrefslogtreecommitdiff
path: root/src/terraform_cmd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-09-05 16:00:36 +0000
committeryexo <yexo@openttd.org>2010-09-05 16:00:36 +0000
commit0e250f2bdfc8eb7f435f59398766f7774e31610c (patch)
tree40f51747f1d8d65476c8bfe8e735c8dc53c49307 /src/terraform_cmd.cpp
parent323c526a4d344025b3ba30ade5923c0d41431d8c (diff)
downloadopenttd-0e250f2bdfc8eb7f435f59398766f7774e31610c.tar.xz
(svn r20748) -Fix: overbuilding an object tile with sea under it with a canal didn't take the cost for clearing the sea into account
Diffstat (limited to 'src/terraform_cmd.cpp')
-rw-r--r--src/terraform_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terraform_cmd.cpp b/src/terraform_cmd.cpp
index 7dfe13fcc..72387fac1 100644
--- a/src/terraform_cmd.cpp
+++ b/src/terraform_cmd.cpp
@@ -318,7 +318,7 @@ CommandCost CmdTerraformLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uin
/* Check tiletype-specific things, and add extra-cost */
const bool curr_gen = _generating_world;
if (_game_mode == GM_EDITOR) _generating_world = true; // used to create green terraformed land
- CommandCost cost = _tile_type_procs[GetTileType(tile)]->terraform_tile_proc(tile, flags | DC_AUTO, z_min * TILE_HEIGHT, tileh);
+ CommandCost cost = _tile_type_procs[GetTileType(tile)]->terraform_tile_proc(tile, flags | DC_AUTO | DC_FORCE_CLEAR_TILE, z_min * TILE_HEIGHT, tileh);
_generating_world = curr_gen;
if (cost.Failed()) {
_terraform_err_tile = tile;