(svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code.
This commit is contained in:
		| @@ -1091,6 +1091,47 @@ static const uint8 _farm_sounds[] = { SND_24_SHEEP, SND_25_COW, SND_26_HORSE }; | ||||
| /** Array with... hem... a sound of toyland */ | ||||
| static const uint8 _plastic_mine_sounds[] = { SND_33_PLASTIC_MINE }; | ||||
|  | ||||
| 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, | ||||
| }; | ||||
|  | ||||
| /** | ||||
|  * Writes the properties of an industry into the IndustrySpec struct. | ||||
|  * @param tbl  tile table | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 rubidium
					rubidium