diff options
author | terkhen <terkhen@openttd.org> | 2010-04-01 19:48:28 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-04-01 19:48:28 +0000 |
commit | 4ec8fed1da87b79dda5edd6cc7c052379c7b8c4e (patch) | |
tree | 87d9b6a57e05d8173f3a712a6ca7b21802cf2602 /src/cargotype.h | |
parent | e1c68f1b2c303617894070ba499c277635af2639 (diff) | |
download | openttd-4ec8fed1da87b79dda5edd6cc7c052379c7b8c4e.tar.xz |
(svn r19534) -Add: Keep a list of cargo specifications sorted by cargo class / name.
Diffstat (limited to 'src/cargotype.h')
-rw-r--r-- | src/cargotype.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cargotype.h b/src/cargotype.h index 29c7b54ec..c0d552a5d 100644 --- a/src/cargotype.h +++ b/src/cargotype.h @@ -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. |