* Draws overhead wires and pylons for electric railways. * @param ti The TileInfo struct of the tile being drawn * @see DrawRailCatenaryRailway */
| 548 | * @see DrawRailCatenaryRailway |
| 549 | */ |
| 550 | void DrawRailCatenary(const TileInfo *ti) |
| 551 | { |
| 552 | switch (GetTileType(ti->tile)) { |
| 553 | case MP_RAILWAY: |
| 554 | if (IsRailDepot(ti->tile)) { |
| 555 | const SortableSpriteStruct &sss = _rail_catenary_sprite_data_depot[GetRailDepotDirection(ti->tile)]; |
| 556 | |
| 557 | SpriteID wire_base = GetWireBase(ti->tile); |
| 558 | |
| 559 | /* This wire is not visible with the default depot sprites */ |
| 560 | AddSortableSpriteToDraw(wire_base + sss.image_offset, PAL_NONE, ti->x, ti->y, GetTileMaxPixelZ(ti->tile), sss, IsTransparencySet(TO_CATENARY)); |
| 561 | return; |
| 562 | } |
| 563 | break; |
| 564 | |
| 565 | case MP_TUNNELBRIDGE: |
| 566 | case MP_ROAD: |
| 567 | case MP_STATION: |
| 568 | break; |
| 569 | |
| 570 | default: return; |
| 571 | } |
| 572 | DrawRailCatenaryRailway(ti); |
| 573 | } |
| 574 | |
| 575 | void SettingsDisableElrail(int32_t new_value) |
| 576 | { |
no test coverage detected