diff options
author | rubidium <rubidium@openttd.org> | 2007-08-30 17:17:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-30 17:17:04 +0000 |
commit | b284b5fa92adc5a5e8975e472511ab4e2e20f71e (patch) | |
tree | 8562d4448fae5c239425c0e3a045ac05afd33329 /src/industry_cmd.cpp | |
parent | 9b65bc430cc4e59cba2e7ad09c2fcc0448e22781 (diff) | |
download | openttd-b284b5fa92adc5a5e8975e472511ab4e2e20f71e.tar.xz |
(svn r11005) -Codechange: move the tiletype specific terraforming checks to the functions for those tile types.
-Codechange: barren the rail grounds on terraforming.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 6f9eeb8b0..57332103f 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1971,6 +1971,10 @@ Money IndustrySpec::GetConstructionCost() const )) >> 8; } +static CommandCost TerraformTile_Industry(TileIndex tile, uint32 flags, uint z_new, Slope tileh_new) +{ + return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); // funny magic bulldozer +} extern const TileTypeProcs _tile_type_industry_procs = { DrawTile_Industry, /* draw_tile_proc */ @@ -1986,6 +1990,7 @@ extern const TileTypeProcs _tile_type_industry_procs = { GetProducedCargo_Industry, /* get_produced_cargo_proc */ NULL, /* vehicle_enter_tile_proc */ GetFoundation_Industry, /* get_foundation_proc */ + TerraformTile_Industry, /* terraform_tile_proc */ }; static const SaveLoad _industry_desc[] = { |