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 | 7f0339748ff6734447237e7646e2411b90c8bf07 (patch) | |
tree | 30623053ee3fb6c0a5bb2f78de89ffef95db4d24 | |
parent | 2dd0ba36cb07260d866e66ad543ddb557799bdb1 (diff) | |
download | openttd-7f0339748ff6734447237e7646e2411b90c8bf07.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; |