mirror of https://github.com/OpenTTD/OpenTTD
Fix e740c24: Use correct command flag, not just DC_EXEC
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue