summaryrefslogtreecommitdiff
path: root/industry_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-04 17:14:36 +0000
committertron <tron@openttd.org>2005-02-04 17:14:36 +0000
commit04921a9015c03bc91ca3645ba0d943a756ea2884 (patch)
tree76ba2ba3d4b5420595e2f75e85f58a04311b0a4d /industry_cmd.c
parente2dab60ad1ef406948f0929098d248f134311c7e (diff)
downloadopenttd-04921a9015c03bc91ca3645ba0d943a756ea2884.tar.xz
(svn r1791) Remove the remnants of CMD_DESTROY_INDUSTRY, which was removed a long time ago
Diffstat (limited to 'industry_cmd.c')
-rw-r--r--industry_cmd.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index 1e1c5e7f5..9e0b92f77 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -411,30 +411,6 @@ static int32 ClearTile_Industry(uint tile, byte flags)
return 0;
}
-/* p1 index of industry to destroy */
-/* Destroy Industry button costing money removed per request of dominik
-int32 CmdDestroyIndustry(int x, int y, uint32 flags, uint32 p1, uint32 p2)
-{
- uint tile = TILE_FROM_XY(x,y);
- Industry *i = GetIndustry((uint16)p1);
- Town *t = ClosestTownFromTile(tile, (uint)-1); // find closest town to penaltize (ALWAYS penaltize)
-
- SET_EXPENSES_TYPE(EXPENSES_OTHER);
-
- // check if you're allowed to remove the industry. Minimum amount
- // of ratings to remove the industry depends on difficulty setting
- if (!CheckforTownRating(tile, flags, t, INDUSTRY_REMOVE))
- return CMD_ERROR;
-
- if (flags & DC_EXEC) {
- DeleteIndustry(i);
- CreateEffectVehicleAbove(x + 8,y + 8, 2, EV_DEMOLISH);
- ChangeTownRating(t, RATING_INDUSTRY_DOWN_STEP, RATING_INDUSTRY_MINIMUM);
- }
-
- return (_price.build_industry >> 5) * _industry_type_costs[i->type]*2;
-}
-*/
static const byte _industry_min_cargo[] = {
5, 5, 5, 30, 5, 5, 5, 5,