From 86d19cb577a8b6d73840563d36983e7caf4d1eb6 Mon Sep 17 00:00:00 2001 From: miham Date: Wed, 17 Nov 2004 00:52:54 +0000 Subject: (svn r647) Cleanup custom station classes handling. (pasky) --- rail_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rail_cmd.c') 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 -- cgit v1.2.3-54-g00ecf