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

@@ -2415,7 +2415,7 @@ static PBSTileInfo ExtendTrainReservation(const Train *v, const PBSTileInfo &ori
tile = ft.m_new_tile;
cur_td = FindFirstTrackdir(ft.m_new_td_bits);
UnreserveRailTrack(tile, TrackdirToTrack(cur_td));
UnreserveRailTrackdir(tile, cur_td);
}
/* Path invalid. */