diff options
author | tron <tron@openttd.org> | 2006-07-27 05:30:53 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-07-27 05:30:53 +0000 |
commit | 3c368fc05e3ce887c8927b3ae678cf892f45525d (patch) | |
tree | 402e84c5a08dd81d1c5453aa00229a86afbb0248 /elrail.c | |
parent | d6f6f76a7ceda6cb895fa1bdb5512f40ca84b313 (diff) | |
download | openttd-3c368fc05e3ce887c8927b3ae678cf892f45525d.tar.xz |
(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
Diffstat (limited to 'elrail.c')
-rw-r--r-- | elrail.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |