summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-09-11 19:12:31 +0000
committerfrosch <frosch@openttd.org>2008-09-11 19:12:31 +0000
commitf1a7f57cb9c7007697fcbaaf83c07b5ef760ac74 (patch)
tree897a8ade8ee394495ed4aafdada7b3690e187ecd
parentc33d779e5a4d70e3b7ed924db2f8e96f529e80ed (diff)
downloadopenttd-f1a7f57cb9c7007697fcbaaf83c07b5ef760ac74.tar.xz
(svn r14291) -Fix [FS#2288] (r12853): For tunnels DrawCatenary() draws only pillars; DrawCatenaryOnTunnel() draws only wires.
-rw-r--r--src/tunnelbridge_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 95bb68d7c..1115003f3 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -926,8 +926,12 @@ static void DrawTile_TunnelBridge(TileInfo *ti)
}
}
} else if (HasCatenaryDrawn(GetRailType(ti->tile))) {
+ /* Maybe draw pylons on the entry side */
+ DrawCatenary(ti);
+
catenary = true;
StartSpriteCombine();
+ /* Draw wire above the ramp */
DrawCatenaryOnTunnel(ti);
}