equal
deleted
inserted
replaced
393 } |
393 } |
394 } |
394 } |
395 |
395 |
396 void DrawCatenary(const TileInfo *ti) |
396 void DrawCatenary(const TileInfo *ti) |
397 { |
397 { |
|
398 if (_patches.disable_elrails) return; |
|
399 |
398 if (MayHaveBridgeAbove(ti->tile) && IsBridgeAbove(ti->tile)) { |
400 if (MayHaveBridgeAbove(ti->tile) && IsBridgeAbove(ti->tile)) { |
399 TileIndex head = GetNorthernBridgeEnd(ti->tile); |
401 TileIndex head = GetNorthernBridgeEnd(ti->tile); |
400 |
402 |
401 if (GetBridgeTransportType(head) == TRANSPORT_RAIL && GetRailType(head) == RAILTYPE_ELECTRIC) { |
403 if (GetBridgeTransportType(head) == TRANSPORT_RAIL && GetRailType(head) == RAILTYPE_ELECTRIC) { |
402 DrawCatenaryOnBridge(ti); |
404 DrawCatenaryOnBridge(ti); |
403 } |
405 } |
404 } |
406 } |
405 if (_patches.disable_elrails) return; |
|
406 |
407 |
407 switch (GetTileType(ti->tile)) { |
408 switch (GetTileType(ti->tile)) { |
408 case MP_RAILWAY: |
409 case MP_RAILWAY: |
409 if (IsRailDepot(ti->tile)) { |
410 if (IsRailDepot(ti->tile)) { |
410 const SortableSpriteStruct *sss = &CatenarySpriteData_Depot[GetRailDepotDirection(ti->tile)]; |
411 const SortableSpriteStruct *sss = &CatenarySpriteData_Depot[GetRailDepotDirection(ti->tile)]; |