diff options
author | smatz <smatz@openttd.org> | 2008-04-23 19:47:23 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-23 19:47:23 +0000 |
commit | 459259aeec83dbc11c2647788d82ab5d949038cf (patch) | |
tree | 6fa1915d48d50bfa1dae69dd8c4e8f57eba77ed1 /src/tunnelbridge_cmd.cpp | |
parent | ccfe024a2a2218af6824b7d82181c063b9c8eeee (diff) | |
download | openttd-459259aeec83dbc11c2647788d82ab5d949038cf.tar.xz |
(svn r12853) -Fix: catenary on tunnel entrances and middle bridge pieces was drawn twice in some cases
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 109f86baf..d95aa9f1c 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -886,8 +886,6 @@ static void DrawTile_TunnelBridge(TileInfo *ti) } } } else if (!IsInvisibilitySet(TO_CATENARY) && HasCatenary(GetRailType(ti->tile))) { - DrawCatenary(ti); - catenary = true; StartSpriteCombine(); DrawCatenaryOnTunnel(ti); @@ -1089,7 +1087,7 @@ void DrawBridgeMiddle(const TileInfo* ti) StartSpriteCombine(); } } else if (HasCatenary(GetRailType(rampsouth))) { - DrawCatenary(ti); + DrawCatenaryOnBridge(ti); } /* draw roof, the component of the bridge which is logically between the vehicle and the camera */ |