(svn r9958) -Fix (r9892): upgrading old savegames made (road)bridges unuseable.

This commit is contained in:
rubidium 2007-05-27 14:42:40 +00:00
parent 2dd0ba36cb
commit 7f0339748f

View File

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