From d234e97f8bc08854859d3b36deb918481f54aa5f Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 25 May 2007 11:01:44 +0000 Subject: (svn r9919) -Codechange: prepare some more places for more road types. --- src/tunnelbridge_cmd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/tunnelbridge_cmd.cpp') 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 */ -- cgit v1.2.3-70-g09d2