(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642

This commit is contained in:
smatz
2007-12-16 19:30:42 +00:00
parent cdee7d4cb8
commit d56a690ba4
15 changed files with 84 additions and 190 deletions

View File

@@ -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;