summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-27 14:42:40 +0000
committerrubidium <rubidium@openttd.org>2007-05-27 14:42:40 +0000
commitcbcd24f562c81b02aaeec1c777e628f5a21a8211 (patch)
tree30623053ee3fb6c0a5bb2f78de89ffef95db4d24
parentd887c1e684ae8e0258e41fb8df39647e97caeaf8 (diff)
downloadopenttd-cbcd24f562c81b02aaeec1c777e628f5a21a8211.tar.xz
(svn r9958) -Fix (r9892): upgrading old savegames made (road)bridges unuseable.
-rw-r--r--src/openttd.cpp2
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;