(svn r20721) -Fix: objects that can be built on water shouldn't be drowned.

This commit is contained in:
rubidium 2010-09-02 20:45:54 +00:00
parent 48767d1bef
commit 29eae4a378

View File

@ -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) {