mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
Fix e740c24
: Use correct command flag, not just DC_EXEC
This commit is contained in:
committed by
Michael Lutz
parent
22f6502b14
commit
89dba56782
@@ -1373,7 +1373,7 @@ static CommandCost TerraformTile_Water(TileIndex tile, DoCommandFlag flags, int
|
|||||||
/* Canals can't be terraformed */
|
/* Canals can't be terraformed */
|
||||||
if (IsWaterTile(tile) && IsCanal(tile)) return_cmd_error(STR_ERROR_MUST_DEMOLISH_CANAL_FIRST);
|
if (IsWaterTile(tile) && IsCanal(tile)) return_cmd_error(STR_ERROR_MUST_DEMOLISH_CANAL_FIRST);
|
||||||
|
|
||||||
return Command<CMD_LANDSCAPE_CLEAR>::Do(DC_EXEC, tile);
|
return Command<CMD_LANDSCAPE_CLEAR>::Do(flags, tile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user