diff options
author | tron <tron@openttd.org> | 2006-08-31 07:29:19 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-31 07:29:19 +0000 |
commit | 22d2ca7cc617fa97800acbde2687961f67310567 (patch) | |
tree | 3b30402a3836b103079ffdb154692b0e8ca62a41 /elrail.c | |
parent | b427ce4e20f5d9a1c2b51de6eae6e1cf64cee21d (diff) | |
download | openttd-22d2ca7cc617fa97800acbde2687961f67310567.tar.xz |
(svn r6255) Simplify drawing of catenary in depots
Diffstat (limited to 'elrail.c')
-rw-r--r-- | elrail.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -362,9 +362,13 @@ void DrawCatenary(const TileInfo *ti) switch (GetTileType(ti->tile)) { case MP_RAILWAY: 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); + const SortableSpriteStruct* sss = &CatenarySpriteData_Depot[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, + GetTileMaxZ(ti->tile) + sss->z_offset + ); return; } break; |