From 3c368fc05e3ce887c8927b3ae678cf892f45525d Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 27 Jul 2006 05:30:53 +0000 Subject: (svn r5624) Use {IsPlainRailTile,IsRailDepot,IsRailWaypoint,HasSignals}() instead of GetRailTile{T,Subt}ype() - this is more concise and a bit more flexible if/when the rail tile encoding changes --- elrail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elrail.c') diff --git a/elrail.c b/elrail.c index e1ab24ec8..b568754e4 100644 --- a/elrail.c +++ b/elrail.c @@ -361,7 +361,7 @@ void DrawCatenary(const TileInfo *ti) { switch (GetTileType(ti->tile)) { case MP_RAILWAY: - if (GetRailTileType(ti->tile) == RAIL_TILE_DEPOT_WAYPOINT && GetRailTileSubtype(ti->tile) == RAIL_SUBTYPE_DEPOT) { + if (IsRailDepot(ti->tile)) { const SortableSpriteStruct *sss = &CatenarySpriteData[WIRE_DEPOT_SW + ReverseDiagDir(GetRailDepotDirection(ti->tile))]; AddSortableSpriteToDraw( sss->image, ti->x + sss->x_offset, ti->y + sss->y_offset, sss->x_size, sss->y_size, sss->z_size, GetSlopeZ(ti->x, ti->y) + sss->z_offset); -- cgit v1.2.3-70-g09d2