summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-04-27 18:28:56 +0000
committerbelugas <belugas@openttd.org>2006-04-27 18:28:56 +0000
commit3ac1832fd1c901a82851556b3503b320f20f783d (patch)
tree87c8ce2455b4248172760e3b393211907edadfd8 /rail_cmd.c
parent3efdba0f2dbf06626516e86a5473beb088e5f8f7 (diff)
downloadopenttd-3ac1832fd1c901a82851556b3503b320f20f783d.tar.xz
(svn r4593) CodeChange : Renamed spec (when using StationSpec) to statspec.
This is following the same scheme as for IndustrySpec
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c8
1 files changed, 4 insertions, 4 deletions
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