summaryrefslogtreecommitdiff
path: root/src/industry.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-24 19:56:43 +0000
committerrubidium <rubidium@openttd.org>2007-07-24 19:56:43 +0000
commitfe8e2979954ed2e129af7a23ec76c6aea73c36da (patch)
treec3eb0b717ba232c1a35aae37f75f9c5c10ed767e /src/industry.h
parent5d3f058b65c97b61709061b721d1ad6922dbc9ef (diff)
downloadopenttd-fe8e2979954ed2e129af7a23ec76c6aea73c36da.tar.xz
(svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code.
Diffstat (limited to 'src/industry.h')
-rw-r--r--src/industry.h44
1 files changed, 2 insertions, 42 deletions
diff --git a/src/industry.h b/src/industry.h
index e6f17492d..12dbb5f8f 100644
--- a/src/industry.h
+++ b/src/industry.h
@@ -105,7 +105,7 @@ struct Industry {
uint16 last_month_transported[2]; ///< total units transported per cargo in the last full month
uint16 counter; ///< used for animation and/or production (if available cargo)
- IndustryType type; ///< type of industry. see IT_COAL_MINE and others
+ IndustryType type; ///< type of industry.
OwnerByte owner; ///< owner of the industry. Which SHOULD always be (imho) OWNER_NONE
byte random_color; ///< randomized colour of the industry, for display purpose
Year last_prod_year; ///< last year of production
@@ -332,46 +332,6 @@ static inline void DeleteIndustry(Industry *i)
extern const Industry **_industry_sort;
extern bool _industry_sort_dirty;
-enum {
- IT_COAL_MINE = 0,
- IT_POWER_STATION = 1,
- IT_SAWMILL = 2,
- IT_FOREST = 3,
- IT_OIL_REFINERY = 4,
- IT_OIL_RIG = 5,
- IT_FACTORY = 6,
- IT_PRINTING_WORKS = 7,
- IT_STEEL_MILL = 8,
- IT_FARM = 9,
- IT_COPPER_MINE = 10,
- IT_OIL_WELL = 11,
- IT_BANK_TEMP = 12,
- IT_FOOD_PROCESS = 13,
- IT_PAPER_MILL = 14,
- IT_GOLD_MINE = 15,
- IT_BANK_TROPIC_ARCTIC = 16,
- IT_DIAMOND_MINE = 17,
- IT_IRON_MINE = 18,
- IT_FRUIT_PLANTATION = 19,
- IT_RUBBER_PLANTATION = 20,
- IT_WATER_SUPPLY = 21,
- IT_WATER_TOWER = 22,
- IT_FACTORY_2 = 23,
- IT_FARM_2 = 24,
- IT_LUMBER_MILL = 25,
- IT_COTTON_CANDY = 26,
- IT_CANDY_FACTORY = 27,
- IT_BATTERY_FARM = 28,
- IT_COLA_WELLS = 29,
- IT_TOY_SHOP = 30,
- IT_TOY_FACTORY = 31,
- IT_PLASTIC_FOUNTAINS = 32,
- IT_FIZZY_DRINK_FACTORY = 33,
- IT_BUBBLE_GENERATOR = 34,
- IT_TOFFEE_QUARRY = 35,
- IT_SUGAR_MINE = 36,
- IT_END,
- IT_INVALID = 255,
-};
+static const uint8 IT_INVALID = 255;
#endif /* INDUSTRY_H */