Changeset - r25471:80843222b596
[Not reviewed]
master
0 2 0
frosch - 3 years ago 2021-05-13 13:45:07
frosch@openttd.org
Codechange: add constant for number of original cargoes.
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/cargo_type.h
Show inline comments
 
@@ -61,6 +61,7 @@ enum CargoType {
 
	CT_PLASTIC      = 10,
 
	CT_FIZZY_DRINKS = 11,
 

	
 
	NUM_ORIGINAL_CARGO = 12,
 
	NUM_CARGO       = 64,   ///< Maximal number of cargo types in a game.
 

	
 
	CT_AUTO_REFIT   = 0xFD, ///< Automatically choose cargo type when doing auto refitting.
src/table/cargo_const.h
Show inline comments
 
@@ -96,7 +96,7 @@ static const CargoSpec _default_cargo[] 
 

	
 

	
 
/** Table of cargo types available in each climate, by default */
 
static const CargoLabel _default_climate_cargo[NUM_LANDSCAPE][12] = {
 
static const CargoLabel _default_climate_cargo[NUM_LANDSCAPE][NUM_ORIGINAL_CARGO] = {
 
	{ 'PASS', 'COAL', 'MAIL', 'OIL_', 'LVST', 'GOOD', 'GRAI', 'WOOD', 'IORE', 'STEL', 'VALU',     33, },
 
	{ 'PASS', 'COAL', 'MAIL', 'OIL_', 'LVST', 'GOOD', 'WHEA', 'WOOD',     34, 'PAPR', 'GOLD', 'FOOD', },
 
	{ 'PASS', 'RUBR', 'MAIL',      4, 'FRUT', 'GOOD', 'MAIZ',     11, 'CORE', 'WATR', 'DIAM', 'FOOD', },
0 comments (0 inline, 0 general)