diff options
author | rubidium <rubidium@openttd.org> | 2007-09-26 14:14:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-26 14:14:51 +0000 |
commit | ca7cab0253f131e460089f801f9c05ca3bb93174 (patch) | |
tree | ed020ef505d86ae5c922a41011dd6f0c60196148 /src/industry_cmd.cpp | |
parent | 93459d1b43887b5de7104128703e2ebcb71d49fa (diff) | |
download | openttd-ca7cab0253f131e460089f801f9c05ca3bb93174.tar.xz |
(svn r11168) -Fix [FS#1256]: assert on terraforming of industries. Patch by frosch.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index dd62073eb..44eb9ed99 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -385,6 +385,7 @@ static CommandCost ClearTile_Industry(TileIndex tile, byte flags) */ if ((_current_player != OWNER_WATER && _game_mode != GM_EDITOR && !_cheats.magic_bulldozer.value) || + ((flags & DC_AUTO) != 0) || (_current_player == OWNER_WATER && (indspec->behaviour & INDUSTRYBEH_BUILT_ONWATER))) { SetDParam(0, indspec->name); return_cmd_error(STR_4800_IN_THE_WAY); @@ -2019,7 +2020,7 @@ static CommandCost TerraformTile_Industry(TileIndex tile, uint32 flags, uint z_n } } } - return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); // funny magic bulldozer + return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); } extern const TileTypeProcs _tile_type_industry_procs = { |