diff options
author | rubidium <rubidium@openttd.org> | 2010-09-02 20:45:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-09-02 20:45:54 +0000 |
commit | 29eae4a378d0b50c95d8195574ee096a251a8597 (patch) | |
tree | 1f9f03b0b1af6775f43dede94a116802ac26bec8 | |
parent | 48767d1befdb57bdf8620817ac443838bffae0ad (diff) | |
download | openttd-29eae4a378d0b50c95d8195574ee096a251a8597.tar.xz |
(svn r20721) -Fix: objects that can be built on water shouldn't be drowned.
-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) { |