Mercurial > hg > openttd
changeset 16021:24f2319d12bd draft
(svn r20714) -Fix: bit 9 of object's flags implies bit 3 is set, so just test for either of the bits being set
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 01 Sep 2010 20:09:15 +0000 |
parents | 07a2dff4bfef |
children | c4b2c49c3005 |
files | src/object_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -162,7 +162,7 @@ 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)) {