mirror of https://github.com/OpenTTD/OpenTTD
(svn r20721) -Fix: objects that can be built on water shouldn't be drowned.
parent
48767d1bef
commit
29eae4a378
|
@ -374,6 +374,9 @@ static CommandCost ClearTile_Object(TileIndex tile, DoCommandFlag flags)
|
||||||
/* Removing with the cheat costs more in TTDPatch / the specs. */
|
/* Removing with the cheat costs more in TTDPatch / the specs. */
|
||||||
cost.MultiplyCost(25);
|
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) {
|
switch (type) {
|
||||||
|
|
Loading…
Reference in New Issue