From 3ac1832fd1c901a82851556b3503b320f20f783d Mon Sep 17 00:00:00 2001 From: belugas Date: Thu, 27 Apr 2006 18:28:56 +0000 Subject: (svn r4593) CodeChange : Renamed spec (when using StationSpec) to statspec. This is following the same scheme as for IndustrySpec --- rail_cmd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rail_cmd.c') diff --git a/rail_cmd.c b/rail_cmd.c index 20d14445f..3435b4a49 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1318,13 +1318,13 @@ static void DrawTile_Track(TileInfo *ti) if (IsRailWaypoint(ti->tile) && IsCustomWaypoint(ti->tile)) { // look for customization byte stat_id = GetWaypointByTile(ti->tile)->stat_id; - const StationSpec *stat = GetCustomStation(STAT_CLASS_WAYP, stat_id); + const StationSpec *statspec = GetCustomStationSpec(STAT_CLASS_WAYP, stat_id); - if (stat != NULL) { + if (statspec != NULL) { DrawTileSeqStruct const *seq; // emulate station tile - open with building - const DrawTileSprites *cust = &stat->renderdata[2 + GetWaypointAxis(ti->tile)]; - uint32 relocation = GetCustomStationRelocation(stat, ComposeWaypointStation(ti->tile), 0); + const DrawTileSprites *cust = &statspec->renderdata[2 + GetWaypointAxis(ti->tile)]; + uint32 relocation = GetCustomStationRelocation(statspec, ComposeWaypointStation(ti->tile), 0); /* We don't touch the 0x8000 bit. In all this * waypoint code, it is used to indicate that -- cgit v1.2.3-54-g00ecf