diff options
author | rubidium <rubidium@openttd.org> | 2007-07-25 19:06:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-25 19:06:29 +0000 |
commit | feb91ab5ea9c0c19846825f3deb5260a4ecb36a1 (patch) | |
tree | f2e904bfcb0f95592e6d631d8b0bacddd27cbdd6 /src/newgrf_cargo.h | |
parent | 3c253483483495b748f9644933f4c17c88f877a1 (diff) | |
download | openttd-feb91ab5ea9c0c19846825f3deb5260a4ecb36a1.tar.xz |
(svn r10690) -Codechange: use the enum that describes all callback IDs in favor of "just" using an untyped integer.
Diffstat (limited to 'src/newgrf_cargo.h')
-rw-r--r-- | src/newgrf_cargo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/newgrf_cargo.h b/src/newgrf_cargo.h index e3f544d61..0c6e41af4 100644 --- a/src/newgrf_cargo.h +++ b/src/newgrf_cargo.h @@ -5,6 +5,8 @@ #ifndef NEWGRF_CARGO_H #define NEWGRF_CARGO_H +#include "newgrf_callbacks.h" + enum { CC_NOAVAILABLE = 0, CC_PASSENGERS = 1 << 0, @@ -26,7 +28,7 @@ struct CargoSpec; struct GRFFile; SpriteID GetCustomCargoSprite(const CargoSpec *cs); -uint16 GetCargoCallback(uint16 callback, uint32 param1, uint32 param2, const CargoSpec *cs); +uint16 GetCargoCallback(CallbackID callback, uint32 param1, uint32 param2, const CargoSpec *cs); CargoID GetCargoTranslation(uint8 cargo, const GRFFile *grffile); uint8 GetReverseCargoTranslation(CargoID cargo, const GRFFile *grffile); |