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 | 145517fb8e0bbd66daa711ca2b31aecc0179fe74 (patch) | |
tree | 3d93af5bbe577ea3e66b1184cb89c1a934d6bcda /src/openttd.cpp | |
parent | 0730b9afc135eabce02144e2928b86cfa0b7f95e (diff) | |
download | openttd-145517fb8e0bbd66daa711ca2b31aecc0179fe74.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; |