diff options
author | rubidium <rubidium@openttd.org> | 2010-09-01 20:09:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-09-01 20:09:15 +0000 |
commit | e90e831f2e8018791f387e4c9a0896d3b20f47a9 (patch) | |
tree | eca18fdc990985fff899b51e135b03cc8a479aab /src | |
parent | 7ee2c31f991b2ddad99e0b19db8b85939e56f9f4 (diff) | |
download | openttd-e90e831f2e8018791f387e4c9a0896d3b20f47a9.tar.xz |
(svn r20714) -Fix: bit 9 of object's flags implies bit 3 is set, so just test for either of the bits being set
Diffstat (limited to 'src')
-rw-r--r-- | src/object_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp index c878fceb3..a74029f74 100644 --- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -162,7 +162,7 @@ CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 cost.AddCost(DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR)); } else { /* Check the surface to build on. */ - bool allow_water = (spec->flags & OBJECT_FLAG_BUILT_ON_WATER) != 0; + bool allow_water = (spec->flags & (OBJECT_FLAG_BUILT_ON_WATER | OBJECT_FLAG_NOT_ON_LAND)) != 0; bool allow_ground = (spec->flags & OBJECT_FLAG_NOT_ON_LAND) == 0; TILE_AREA_LOOP(t, ta) { if (IsWaterTile(t)) { |