diff options
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index ce5803f75..4be63214b 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -1048,6 +1048,10 @@ void DrawBridgeMiddle(const TileInfo* ti) pal = psid->pal; } + if (GetRailType(rampsouth) == RAILTYPE_ELECTRIC) { + DrawCatenary(ti); + } + /* draw roof, the component of the bridge which is logically between the vehicle and the camera */ if (axis == AXIS_X) { y += 12; @@ -1057,8 +1061,6 @@ void DrawBridgeMiddle(const TileInfo* ti) if (image & SPRITE_MASK) AddSortableSpriteToDraw(image, pal, x, y, 1, 16, 0x28, z); } - if (GetRailType(rampsouth) == RAILTYPE_ELECTRIC) DrawCatenary(ti); - psid++; if (ti->z + 5 == z) { /* draw poles below for small bridges */ |