diff options
author | peter1138 <peter1138@openttd.org> | 2007-02-22 22:09:51 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-02-22 22:09:51 +0000 |
commit | 60620049606d5ce556d26ddaf401fcf5f28f1954 (patch) | |
tree | 432cebbeb0022164d562965a95d0ae34877f212e /src/cargotype.h | |
parent | 4f41a8a5e29795e52f999089cd11b3b5a149443d (diff) | |
download | openttd-60620049606d5ce556d26ddaf401fcf5f28f1954.tar.xz |
(svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping tables with dynamically generated data. Change associated code to use new functions.
Diffstat (limited to 'src/cargotype.h')
-rw-r--r-- | src/cargotype.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |