summaryrefslogtreecommitdiff
path: root/src/cargotype.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-02-24 19:36:47 +0000
committerpeter1138 <peter1138@openttd.org>2007-02-24 19:36:47 +0000
commita23b4594edfa0e8e0322dafc0ed22a418a165295 (patch)
tree539b6b279cb4fdfb5708bda4b641faa5f776f25a /src/cargotype.h
parent0cf5ebee797e7b30232d583e1922b7c8fb07776b (diff)
downloadopenttd-a23b4594edfa0e8e0322dafc0ed22a418a165295.tar.xz
(svn r8886) -Codechange: (NewGRF) Add (partial) cargo translation table support, applied to action 3s only.
Diffstat (limited to 'src/cargotype.h')
-rw-r--r--src/cargotype.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cargotype.h b/src/cargotype.h
index 0e4379517..a584aef98 100644
--- a/src/cargotype.h
+++ b/src/cargotype.h
@@ -47,6 +47,8 @@ void SetupCargoForClimate(LandscapeID l);
const CargoSpec *GetCargo(CargoID c);
/* Get the cargo ID of a cargo bitnum */
CargoID GetCargoIDByBitnum(byte bitnum);
+/* Get the cargo ID with the cargo label */
+CargoID GetCargoIDByLabel(CargoLabel cl);
#endif /* CARGOTYPE_H */