forked from mirror/OpenTTD
(svn r19573) -Fix (r19541): Special cargos did not appear at the refit list.
This commit is contained in:
@@ -134,6 +134,7 @@ CargoID GetCargoIDByBitnum(uint8 bitnum);
|
||||
void InitializeSortedCargoSpecs();
|
||||
extern const CargoSpec *_sorted_cargo_specs[NUM_CARGO];
|
||||
extern uint8 _sorted_cargo_specs_size;
|
||||
extern uint8 _sorted_standard_cargo_specs_size;
|
||||
|
||||
/** Does cargo \a c have cargo class \a cc?
|
||||
* @param c Cargo type.
|
||||
@@ -151,4 +152,6 @@ static inline bool IsCargoInClass(CargoID c, CargoClass cc)
|
||||
|
||||
#define FOR_ALL_SORTED_CARGOSPECS(var) for (uint8 index = 0; var = _sorted_cargo_specs[index], index < _sorted_cargo_specs_size; index++)
|
||||
|
||||
#define FOR_ALL_SORTED_STANDARD_CARGOSPECS(var) for (uint8 index = 0; var = _sorted_cargo_specs[index], index < _sorted_standard_cargo_specs_size; index++)
|
||||
|
||||
#endif /* CARGOTYPE_H */
|
||||
|
Reference in New Issue
Block a user