summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-11-14 14:10:03 +0000
committerdarkvater <darkvater@openttd.org>2004-11-14 14:10:03 +0000
commitccc496ba2ce07be7bd8faf0a084e983dbed5e80b (patch)
treec98b22919e336453a225758147c78c898731875e /rail_cmd.c
parent5663926aaf2ccbc520cd2df08738e4a6b95229d3 (diff)
downloadopenttd-ccc496ba2ce07be7bd8faf0a084e983dbed5e80b.tar.xz
(svn r591) -newgrf: Store whole struct StationSpec in SetCustomStation(), not just the rendering data. This will be needed for variational stationspecs (pasky).
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index df765bc05..12bca7fb4 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1544,7 +1544,7 @@ static void DrawTile_Track(TileInfo *ti)
if (!IS_RAIL_DEPOT(m5) && IS_RAIL_WAYPOINT(m5) && _map3_lo[ti->tile]&16) {
// look for customization
- DrawTileSprites *cust = GetCustomStation('WAYP', _map3_hi[ti->tile]);
+ DrawTileSprites *cust = GetCustomStationRenderdata('WAYP', _map3_hi[ti->tile]);
if (cust) {
DrawTileSeqStruct const *seq;
@@ -1623,7 +1623,7 @@ void DrawTrainDepotSprite(int x, int y, int image, int railtype)
void DrawWaypointSprite(int x, int y, int stat_id)
{
// TODO: We should use supersets with cargo-id FF, if available. --pasky
- DrawTileSprites *cust = GetCustomStation('WAYP', stat_id);
+ DrawTileSprites *cust = GetCustomStationRenderdata('WAYP', stat_id);
DrawTileSeqStruct const *seq;
uint32 ormod, img;