Merge branch 'signal_tunnels_bridges' into jgrpp
# Conflicts: # src/saveload/extended_ver_sl.cpp # src/train.h
This commit is contained in:
@@ -3348,6 +3348,17 @@ bool AfterLoadGame()
|
||||
}
|
||||
}
|
||||
}
|
||||
if (SlXvIsFeaturePresent(XSLFI_SIG_TUNNEL_BRIDGE, 1, 4)) {
|
||||
/* load_unload_ticks --> tunnel_bridge_signal_num */
|
||||
Train *t;
|
||||
FOR_ALL_TRAINS(t) {
|
||||
TileIndex tile = t->tile;
|
||||
if (IsTileType(tile, MP_TUNNELBRIDGE) && GetTunnelBridgeTransportType(tile) == TRANSPORT_RAIL && IsTunnelBridgeWithSignalSimulation(tile)) {
|
||||
t->tunnel_bridge_signal_num = t->load_unload_ticks;
|
||||
t->load_unload_ticks = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (SlXvIsFeatureMissing(XSLFI_CUSTOM_BRIDGE_HEADS)) {
|
||||
/* ensure that previously unused custom bridge-head bits are cleared */
|
||||
|
||||
Reference in New Issue
Block a user