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
commit33c2b798fb2a077a716a213be5355a09f7c15ade (patch)
tree897a8ade8ee394495ed4aafdada7b3690e187ecd
parentef03a416310d78524d3597b28b20f636a31e87ad (diff)
downloadopenttd-33c2b798fb2a077a716a213be5355a09f7c15ade.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);
}