summaryrefslogtreecommitdiff
path: root/src/object_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/object_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/object_cmd.cpp')
-rw-r--r--src/object_cmd.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp
index ed68643e7..cedec4188 100644
--- a/src/object_cmd.cpp
+++ b/src/object_cmd.cpp
@@ -640,8 +640,6 @@ static CommandCost TerraformTile_Object(TileIndex tile, DoCommandFlag flags, uin
{
ObjectType type = GetObjectType(tile);
- if (GetWaterClass(tile) == WATER_CLASS_CANAL) return_cmd_error(STR_ERROR_MUST_DEMOLISH_CANAL_FIRST);
-
if (type == OBJECT_OWNED_LAND) {
/* Owned land remains unsold */
CommandCost ret = CheckTileOwnership(tile);