summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-04-26 14:58:06 +0000
committerbelugas <belugas@openttd.org>2006-04-26 14:58:06 +0000
commit8443f43d1f7fc6191d9ff0944ccf7bc3f79a1210 (patch)
tree3d0a7b27d8f023709a0ff05106f3760151d04487 /table
parent5c7cf7d0e53b958368dd5a2a874e916d8d79cd9b (diff)
downloadopenttd-8443f43d1f7fc6191d9ff0944ccf7bc3f79a1210.tar.xz
(svn r4577) CodeChange : Cleanup of industry_cmd (Step-1).
Add an accessor to _industry_specs array. Work of tfc_team
Diffstat (limited to 'table')
-rw-r--r--table/build_industry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/build_industry.h b/table/build_industry.h
index 82741b781..7640c3974 100644
--- a/table/build_industry.h
+++ b/table/build_industry.h
@@ -1081,7 +1081,7 @@ static const IndustryTileTable * const _tile_table_sugar_mine[] = {
#define MK(tbl, a,b,c, p1,p2, r1,r2, a1,a2,a3, proc) {tbl,lengthof(tbl),a,b,c,{p1,p2},{r1,r2},{a1,a2,a3},proc}
-static const IndustrySpec _industry_spec[37] = {
+static const IndustrySpec _industry_specs[IT_END] = {
/* name not close to produce prodrate accepts checkproc */
MK(_tile_table_coal_mine, 1,255,255, 1,255, 15, 0, 255,255,255, 0),
MK(_tile_table_power_station, 0,255,255, 255,255, 0, 0, 1,255,255, 0),
@@ -1123,7 +1123,7 @@ static const IndustrySpec _industry_spec[37] = {
};
#undef MK
-const byte _industry_type_costs[37] = {
+const byte _industry_type_costs[IT_END] = {
210, 30, 28, 200, 31, 240, 26, 26, 27, 250, 205, 220, 193, 26,
28, 208, 19, 213, 220, 225, 218, 199, 14, 26, 250, 17, 195, 26,
187, 193, 17, 20, 192, 22, 203, 213, 210