diff options
-rw-r--r-- | src/object_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |