From 84df3ba2b40054b751fd9d39c3a9b3a7589422b8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 17 Jul 2009 19:44:13 +0000 Subject: (svn r16859) -Codechange: split the Station struct into two so parts of it can be reused for Waypoints. --- src/newgrf_station.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/newgrf_station.h') diff --git a/src/newgrf_station.h b/src/newgrf_station.h index fa88c4064..3031a4ca9 100644 --- a/src/newgrf_station.h +++ b/src/newgrf_station.h @@ -131,9 +131,9 @@ uint32 GetPlatformInfo(Axis axis, byte tile, int platforms, int length, int x, i /* Get sprite offset for a given custom station and station structure (may be * NULL - that means we are in a build dialog). The station structure is used * for variational sprite groups. */ -SpriteID GetCustomStationRelocation(const StationSpec *statspec, const Station *st, TileIndex tile); -SpriteID GetCustomStationGroundRelocation(const StationSpec *statspec, const Station *st, TileIndex tile); -uint16 GetStationCallback(CallbackID callback, uint32 param1, uint32 param2, const StationSpec *statspec, const Station *st, TileIndex tile); +SpriteID GetCustomStationRelocation(const StationSpec *statspec, const BaseStation *st, TileIndex tile); +SpriteID GetCustomStationGroundRelocation(const StationSpec *statspec, const BaseStation *st, TileIndex tile); +uint16 GetStationCallback(CallbackID callback, uint32 param1, uint32 param2, const StationSpec *statspec, const BaseStation *st, TileIndex tile); /* Allocate a StationSpec to a Station. This is called once per build operation. */ int AllocateSpecToStation(const StationSpec *statspec, Station *st, bool exec); @@ -155,7 +155,7 @@ enum StatAnimTrigger { }; void AnimateStationTile(TileIndex tile); -void StationAnimationTrigger(const Station *st, TileIndex tile, StatAnimTrigger trigger, CargoID cargo_type = CT_INVALID); -void StationUpdateAnimTriggers(Station *st); +void StationAnimationTrigger(const BaseStation *st, TileIndex tile, StatAnimTrigger trigger, CargoID cargo_type = CT_INVALID); +void StationUpdateAnimTriggers(BaseStation *st); #endif /* NEWGRF_STATION_H */ -- cgit v1.2.3-54-g00ecf