Mercurial > hg > openttd
diff src/vehicle.cpp @ 9975:df1e34818bb9 draft
(svn r14132) -Fix (r14039): Only reserve a path on leaving a station if the current block really is a PBS block. (michi_cc)
author | frosch <frosch@openttd.org> |
---|---|
date | Fri, 22 Aug 2008 22:48:12 +0000 |
parents | c2dfac401633 |
children | 7867701f63e4 |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2467,9 +2467,10 @@ /* Try to reserve a path when leaving the station as we * might not be marked as wanting a reservation, e.g. - * when an overlenght train gets turned around in a station. - */ - TryPathReserve(this, true, true); + * 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); + } } }