diff options
author | rubidium <rubidium@openttd.org> | 2007-05-27 14:42:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-27 14:42:40 +0000 |
commit | cbcd24f562c81b02aaeec1c777e628f5a21a8211 (patch) | |
tree | 30623053ee3fb6c0a5bb2f78de89ffef95db4d24 | |
parent | d887c1e684ae8e0258e41fb8df39647e97caeaf8 (diff) | |
download | openttd-cbcd24f562c81b02aaeec1c777e628f5a21a8211.tar.xz |
(svn r9958) -Fix (r9892): upgrading old savegames made (road)bridges unuseable.
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 6ba826ad9..58fff0971 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1468,7 +1468,7 @@ bool AfterLoadGame() break; case MP_TUNNELBRIDGE: - if ((IsTunnel(t) ? GetTunnelTransportType(t) : GetBridgeTransportType(t)) == TRANSPORT_ROAD) { + if ((IsTunnel(t) ? GetTunnelTransportType(t) : (TransportType)GB(_m[t].m5, 1, 2)) == TRANSPORT_ROAD) { SetRoadTypes(t, ROADTYPES_ROAD); } break; |