From 60620049606d5ce556d26ddaf401fcf5f28f1954 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 22 Feb 2007 22:09:51 +0000 Subject: (svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping tables with dynamically generated data. Change associated code to use new functions. --- src/cargotype.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cargotype.h') diff --git a/src/cargotype.h b/src/cargotype.h index 2e202f9de..65a5797cf 100644 --- a/src/cargotype.h +++ b/src/cargotype.h @@ -34,9 +34,15 @@ typedef struct CargoSpec { } CargoSpec; +extern uint32 _cargo_mask; + + /* Set up the default cargo types for the given landscape type */ void SetupCargoForClimate(LandscapeID l); /* Retrieve cargo details for the given cargo ID */ const CargoSpec *GetCargo(CargoID c); +/* Get the cargo ID of a cargo bitnum */ +CargoID GetCargoIDByBitnum(byte bitnum); + #endif /* CARGOTYPE_H */ -- cgit v1.2.3-54-g00ecf