From 29eae4a378d0b50c95d8195574ee096a251a8597 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 2 Sep 2010 20:45:54 +0000 Subject: (svn r20721) -Fix: objects that can be built on water shouldn't be drowned. --- src/object_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp index a74029f74..22abaeec5 100644 --- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -374,6 +374,9 @@ static CommandCost ClearTile_Object(TileIndex tile, DoCommandFlag flags) /* Removing with the cheat costs more in TTDPatch / the specs. */ cost.MultiplyCost(25); } + } else if ((spec->flags & (OBJECT_FLAG_BUILT_ON_WATER | OBJECT_FLAG_NOT_ON_LAND)) != 0) { + /* Water can't remove objects that are buildable on water. */ + return CMD_ERROR; } switch (type) { -- cgit v1.2.3-54-g00ecf