summaryrefslogtreecommitdiff
path: root/src/newgrf_station.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-14 13:12:47 +0000
committerfrosch <frosch@openttd.org>2011-05-14 13:12:47 +0000
commit20e86fd5ea07b2ae0082f48ddb54d4da10b9d486 (patch)
tree4aac07bd4be853a5a091a9d2d31e1fbf212d2d25 /src/newgrf_station.h
parentfdd2f8447eb2a6fedb42180f5dc5367a14c0f2bf (diff)
downloadopenttd-20e86fd5ea07b2ae0082f48ddb54d4da10b9d486.tar.xz
(svn r22454) -Codechange: Deduplicate GetCustomStationGroundRelocation() into GetCustomStationRelocation() and only call it if actually needed.
Diffstat (limited to 'src/newgrf_station.h')
-rw-r--r--src/newgrf_station.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/newgrf_station.h b/src/newgrf_station.h
index c7fb556e6..7363c9e56 100644
--- a/src/newgrf_station.h
+++ b/src/newgrf_station.h
@@ -111,11 +111,7 @@ const StationSpec *GetStationSpec(TileIndex t);
/* Evaluate a tile's position within a station, and return the result a bitstuffed format. */
uint32 GetPlatformInfo(Axis axis, byte tile, int platforms, int length, int x, int y, bool centred);
-/* 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 BaseStation *st, TileIndex tile);
-SpriteID GetCustomStationGroundRelocation(const StationSpec *statspec, const BaseStation *st, TileIndex tile);
+SpriteID GetCustomStationRelocation(const StationSpec *statspec, const BaseStation *st, TileIndex tile, uint32 var10 = 0);
SpriteID GetCustomStationFoundationRelocation(const StationSpec *statspec, const BaseStation *st, TileIndex tile, uint layout, uint edge_info);
uint16 GetStationCallback(CallbackID callback, uint32 param1, uint32 param2, const StationSpec *statspec, const BaseStation *st, TileIndex tile);