mirror of https://github.com/OpenTTD/OpenTTD
(svn r20745) -Fix: don't delete an object when trying to terraform a tile of it with canal under it. If we delete the object the terraforming will still fail due to the canal
parent
0ab95ba636
commit
72e2e21cb5
|
@ -640,6 +640,8 @@ static CommandCost TerraformTile_Object(TileIndex tile, DoCommandFlag flags, uin
|
|||
{
|
||||
ObjectType type = GetObjectType(tile);
|
||||
|
||||
if (GetWaterClass(tile) == WATER_CLASS_CANAL) return_cmd_error(STR_ERROR_MUST_DEMOLISH_CANAL_FIRST);
|
||||
|
||||
if (type == OBJECT_OWNED_LAND) {
|
||||
/* Owned land remains unsold */
|
||||
CommandCost ret = CheckTileOwnership(tile);
|
||||
|
|
Loading…
Reference in New Issue