diff options
author | tron <tron@openttd.org> | 2006-05-20 16:46:37 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-05-20 16:46:37 +0000 |
commit | 2a3aca6139f4a108e694304687810448682f04e1 (patch) | |
tree | a989a507576cc5332b70b2deab95ebc6d2a26b4b /table | |
parent | edb5e87e0c1dc116e5281ac775b2ca17e67654d3 (diff) | |
download | openttd-2a3aca6139f4a108e694304687810448682f04e1.tar.xz |
(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.
Diffstat (limited to 'table')
-rw-r--r-- | table/build_industry.h | 7 |
1 files changed, 4 insertions, 3 deletions
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), |