From 2a3aca6139f4a108e694304687810448682f04e1 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 20 May 2006 16:46:37 +0000 Subject: (svn r4920) Remove parameters, which get only used in certain functions, by splitting those functions. At least in the case of checking for oil industry restrictions this makes the check conditions more clear. --- table/build_industry.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'table') diff --git a/table/build_industry.h b/table/build_industry.h index 9bfdcba5d..b30f5da1e 100644 --- a/table/build_industry.h +++ b/table/build_industry.h @@ -1070,12 +1070,13 @@ static const IndustryTileTable * const _tile_table_sugar_mine[] = { typedef enum CheckProcs { CHECK_NOTHING = 0, CHECK_FOREST = 1, - CHECK_OIL = 2, + CHECK_REFINERY = 2, CHECK_FARM = 3, CHECK_PLANTATION = 4, CHECK_WATER = 5, CHECK_LUMBERMILL = 6, CHECK_BUBBLEGEN = 7, + CHECK_OIL_RIG = 8, CHECK_END, } CheckProc; @@ -1115,13 +1116,13 @@ static const IndustrySpec _industry_specs[] = { STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_483A_INSECT_INFESTATION_CAUSES), MK(_tile_table_oil_refinery, 31, - IT_OIL_RIG, IT_INVALID, IT_INVALID, CHECK_OIL, + IT_OIL_RIG, IT_INVALID, IT_INVALID, CHECK_REFINERY, CT_GOODS, 0, CT_INVALID, 0, 5, CT_OIL, CT_INVALID, CT_INVALID, STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50), MK(_tile_table_oil_rig, 240, - IT_OIL_REFINERY, IT_INVALID, IT_INVALID, CHECK_OIL, + IT_OIL_REFINERY, IT_INVALID, IT_INVALID, CHECK_OIL_RIG, CT_OIL, 15, CT_PASSENGERS, 2, 5, CT_INVALID, CT_INVALID, CT_INVALID, STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4837_NEW_OIL_RESERVES_FOUND, STR_4839_PRODUCTION_DOWN_BY_50), -- cgit v1.2.3-70-g09d2