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_station.cpp | |
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_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 7e2e40c9b..4e40cacd8 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -555,7 +555,7 @@ static void NewStationResolver(ResolverObject *res, const StationSpec *statspec, res->u.station.statspec = statspec; res->u.station.tile = tile; - res->callback = 0; + res->callback = CBID_NO_CALLBACK; res->callback_param1 = 0; res->callback_param2 = 0; res->last_value = 0; @@ -627,7 +627,7 @@ SpriteID GetCustomStationGroundRelocation(const StationSpec *statspec, const Sta } -uint16 GetStationCallback(uint16 callback, uint32 param1, uint32 param2, const StationSpec *statspec, const Station *st, TileIndex tile) +uint16 GetStationCallback(CallbackID callback, uint32 param1, uint32 param2, const StationSpec *statspec, const Station *st, TileIndex tile) { const SpriteGroup *group; ResolverObject object; |