Allow value of "PBS entry signal" conditional to be a rail depot.

This commit is contained in:
Jonathan G Rennison
2016-07-18 00:47:52 +01:00
parent 58817c26e0
commit 3d6cbb76b4
3 changed files with 24 additions and 12 deletions

View File

@@ -409,6 +409,10 @@ Train *GetTrainForReservation(TileIndex tile, Track track)
*/
TileIndex VehiclePosTraceRestrictPreviousSignalCallback(const Train *v, const void *)
{
if (IsRailDepotTile(v->tile)) {
return v->tile;
}
// scan forwards from vehicle position, for the case that train is waiting at/approaching PBS signal
TileIndex tile = v->tile;