(svn r10690) -Codechange: use the enum that describes all callback IDs in favor of "just" using an untyped integer.

This commit is contained in:
rubidium
2007-07-25 19:06:29 +00:00
parent 3c25348348
commit feb91ab5ea
15 changed files with 29 additions and 22 deletions

View File

@@ -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);