summaryrefslogtreecommitdiff
path: root/src/cargotype.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-02-22 22:09:51 +0000
committerpeter1138 <peter1138@openttd.org>2007-02-22 22:09:51 +0000
commit2306a02f75f53e673ea9e113e7edea794b3b088a (patch)
tree432cebbeb0022164d562965a95d0ae34877f212e /src/cargotype.h
parent11f286fb74536250db767faaf6ae373b5f8349b3 (diff)
downloadopenttd-2306a02f75f53e673ea9e113e7edea794b3b088a.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.h6
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 */