(svn r9579) -Codechange: Cleanup of industry_cmd (Step-11). Use industry's spec appear_creation during random map creation.
This commit is contained in:
@@ -1418,75 +1418,6 @@ static const IndustrySpec _industry_specs[] = {
|
||||
};
|
||||
#undef MK
|
||||
|
||||
|
||||
static const byte _industry_create_table_0[] = {
|
||||
4, 4,
|
||||
5, 3,
|
||||
5, 2,
|
||||
8, 0,
|
||||
5, 1,
|
||||
4, 11,
|
||||
5, 18,
|
||||
9, 9,
|
||||
5, 8,
|
||||
5, 6,
|
||||
0
|
||||
};
|
||||
|
||||
static const byte _industry_create_table_1[] = {
|
||||
4, 4,
|
||||
5, 3,
|
||||
5, 14,
|
||||
8, 0,
|
||||
5, 1,
|
||||
5, 11,
|
||||
5, 13,
|
||||
9, 9,
|
||||
4, 15,
|
||||
5, 7,
|
||||
6, 16,
|
||||
0
|
||||
};
|
||||
|
||||
static const byte _industry_create_table_2[] = {
|
||||
4, 4,
|
||||
5, 11,
|
||||
5, 16,
|
||||
4, 13,
|
||||
4, 17,
|
||||
4, 10,
|
||||
4, 19,
|
||||
4, 20,
|
||||
4, 21,
|
||||
8, 22,
|
||||
4, 13,
|
||||
4, 23,
|
||||
2, 24,
|
||||
0
|
||||
};
|
||||
|
||||
static const byte _industry_create_table_3[] = {
|
||||
5, 26,
|
||||
5, 27,
|
||||
4, 28,
|
||||
5, 29,
|
||||
4, 30,
|
||||
5, 31,
|
||||
5, 32,
|
||||
4, 33,
|
||||
5, 34,
|
||||
5, 35,
|
||||
4, 36,
|
||||
0
|
||||
};
|
||||
|
||||
static const byte * const _industry_create_table[4] = {
|
||||
_industry_create_table_0,
|
||||
_industry_create_table_1,
|
||||
_industry_create_table_2,
|
||||
_industry_create_table_3,
|
||||
};
|
||||
|
||||
/** Writes the properties of a industry tile into the IndustryTileSpec struct.
|
||||
* @param c1 first type of cargo accepted for this tile
|
||||
* @param c2 second cargo
|
||||
|
Reference in New Issue
Block a user