(svn r19534) -Add: Keep a list of cargo specifications sorted by cargo class / name.
This commit is contained in:
@@ -131,6 +131,10 @@ void SetupCargoForClimate(LandscapeID l);
|
||||
CargoID GetCargoIDByLabel(CargoLabel cl);
|
||||
CargoID GetCargoIDByBitnum(uint8 bitnum);
|
||||
|
||||
void InitializeSortedCargoSpecs();
|
||||
extern const CargoSpec *_sorted_cargo_specs[NUM_CARGO];
|
||||
extern uint8 _sorted_cargo_specs_size;
|
||||
|
||||
/** Does cargo \a c have cargo class \a cc?
|
||||
* @param c Cargo type.
|
||||
* @param cc Cargo class.
|
||||
|
||||
Reference in New Issue
Block a user