From 4ec8fed1da87b79dda5edd6cc7c052379c7b8c4e Mon Sep 17 00:00:00 2001 From: terkhen Date: Thu, 1 Apr 2010 19:48:28 +0000 Subject: (svn r19534) -Add: Keep a list of cargo specifications sorted by cargo class / name. --- src/cargotype.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cargotype.h') 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. -- cgit v1.2.3-54-g00ecf