summaryrefslogtreecommitdiff
path: root/src/cargotype.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-03-28 04:57:32 +0000
committerrubidium <rubidium@openttd.org>2008-03-28 04:57:32 +0000
commitd8cfb4f064d5492770d3325ef6e288b630e34e7c (patch)
tree054d82fc3797d11e8a32609a8112e9799cc33682 /src/cargotype.h
parent79f033c78fe7a92cabce880225b8466a3a68c61c (diff)
downloadopenttd-d8cfb4f064d5492770d3325ef6e288b630e34e7c.tar.xz
(svn r12458) -Codechange: split acquiring the sprite ID for cargos from the actual drawing of them.
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 67b63e3dd..7d770b1b9 100644
--- a/src/cargotype.h
+++ b/src/cargotype.h
@@ -59,6 +59,8 @@ extern CargoSpec _cargo[NUM_CARGO];
void SetupCargoForClimate(LandscapeID l);
/* Retrieve cargo details for the given cargo ID */
const CargoSpec *GetCargo(CargoID c);
+/* Get the cargo icon for a given cargo ID */
+SpriteID GetCargoSprite(CargoID i);
/* Get the cargo ID with the cargo label */
CargoID GetCargoIDByLabel(CargoLabel cl);
CargoID GetCargoIDByBitnum(uint8 bitnum);