summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authormiham <miham@openttd.org>2004-11-17 00:52:54 +0000
committermiham <miham@openttd.org>2004-11-17 00:52:54 +0000
commit86d19cb577a8b6d73840563d36983e7caf4d1eb6 (patch)
treef9cadca3e19886b1b11b1dd94abd5ed3be4e94b8 /rail_cmd.c
parentcd6cb848892c7714d90845a85be24181f44bc7ee (diff)
downloadopenttd-86d19cb577a8b6d73840563d36983e7caf4d1eb6.tar.xz
(svn r647) Cleanup custom station classes handling. (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 053c6792c..80fec6b11 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1564,7 +1564,7 @@ static void DrawTile_Track(TileInfo *ti)
if (!IS_RAIL_DEPOT(m5) && IS_RAIL_WAYPOINT(m5) && _map3_lo[ti->tile]&16) {
// look for customization
- struct StationSpec *stat = GetCustomStation('WAYP', _map3_hi[ti->tile]);
+ struct StationSpec *stat = GetCustomStation(STAT_CLASS_WAYP, _map3_hi[ti->tile]);
if (stat) {
DrawTileSeqStruct const *seq;
@@ -1677,7 +1677,7 @@ void DrawWaypointSprite(int x, int y, int stat_id, int railtype)
return;
}
- stat = GetCustomStation('WAYP', stat_id - 1);
+ stat = GetCustomStation(STAT_CLASS_WAYP, stat_id - 1);
assert(stat);
relocation = GetCustomStationRelocation(stat, NULL, 1);
// emulate station tile - open with building