mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r14132) -Fix (r14039): Only reserve a path on leaving a station if the current block really is a PBS block. (michi_cc)
This commit is contained in:
parent
9fe035f8e8
commit
12f38e56df
|
@ -2467,9 +2467,10 @@ void Vehicle::LeaveStation()
|
||||||
|
|
||||||
/* Try to reserve a path when leaving the station as we
|
/* Try to reserve a path when leaving the station as we
|
||||||
* might not be marked as wanting a reservation, e.g.
|
* might not be marked as wanting a reservation, e.g.
|
||||||
* when an overlenght train gets turned around in a station.
|
* when an overlength train gets turned around in a station. */
|
||||||
*/
|
if (UpdateSignalsOnSegment(this->tile, TrackdirToExitdir(GetVehicleTrackdir(this)), this->owner) == SIGSEG_PBS || _settings_game.pf.reserve_paths) {
|
||||||
TryPathReserve(this, true, true);
|
TryPathReserve(this, true, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue