Fix unreserving through a green PBS signal not setting the state to red.

This also had the side effect of failed reservation attempts through
a reserve-through signal leaving the signal erroneously set to green.
This commit is contained in:
Jonathan G Rennison
2016-03-01 20:52:54 +00:00
parent 83369d5e71
commit 1bb3024534
4 changed files with 17 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ void SetRailStationPlatformReservation(TileIndex start, DiagDirection dir, bool
bool TryReserveRailTrack(TileIndex tile, Track t, bool trigger_stations = true);
bool TryReserveRailTrackdir(TileIndex tile, Trackdir td, bool trigger_stations = true);
void UnreserveRailTrack(TileIndex tile, Track t);
void UnreserveRailTrackdir(TileIndex tile, Trackdir td);
/** This struct contains information about the end of a reserved path. */
struct PBSTileInfo {