Fix tunnel/bridge entrance signal not being refreshed.

When a train left a tunnel or a bridge with no intermediary signals,
when setting the entrance signal to green, the display was not refreshed
with show track reservations was enabled.
This commit is contained in:
Jonathan G Rennison 2016-09-18 16:12:47 +01:00
parent 0d2e9f91bf
commit 61500b596e

View File

@ -2240,10 +2240,10 @@ static void HandleLastTunnelBridgeSignals(TileIndex tile, TileIndex end, DiagDir
if (IsTunnelBridgeSignalSimulationEntrance(end) && GetTunnelBridgeSignalState(end) == SIGNAL_STATE_RED) {
SetTunnelBridgeSignalState(end, SIGNAL_STATE_GREEN);
if (!_settings_client.gui.show_track_reservation) MarkTileDirtyByTile(end);
MarkTileDirtyByTile(end);
} else if (IsTunnelBridgeSignalSimulationEntrance(tile) && GetTunnelBridgeSignalState(tile) == SIGNAL_STATE_RED) {
SetTunnelBridgeSignalState(tile, SIGNAL_STATE_GREEN);
if (!_settings_client.gui.show_track_reservation) MarkTileDirtyByTile(tile);
MarkTileDirtyByTile(tile);
}
}
}