diff options
author | smatz <smatz@openttd.org> | 2007-12-16 19:30:42 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2007-12-16 19:30:42 +0000 |
commit | d56a690ba432c3ef483ac7a8072266349f2bfc96 (patch) | |
tree | 3d93af5bbe577ea3e66b1184cb89c1a934d6bcda /src/openttd.cpp | |
parent | cdee7d4cb8541657d99891ee59cb5caab6aaf444 (diff) | |
download | openttd-d56a690ba432c3ef483ac7a8072266349f2bfc96.tar.xz |
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 77d3bb2a4..2c0f1a0ec 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1759,14 +1759,8 @@ bool AfterLoadGame() break; case MP_TUNNELBRIDGE: - if (IsTunnel(t)) { - if (GetTunnelBridgeTransportType(t) == TRANSPORT_RAIL) { - SetRailType(t, UpdateRailType(GetRailType(t), min_rail)); - } - } else { - if (GetTunnelBridgeTransportType(t) == TRANSPORT_RAIL) { - SetRailType(t, UpdateRailType(GetRailType(t), min_rail)); - } + if (GetTunnelBridgeTransportType(t) == TRANSPORT_RAIL) { + SetRailType(t, UpdateRailType(GetRailType(t), min_rail)); } break; |