diff options
author | frosch <frosch@openttd.org> | 2008-08-22 22:48:12 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-08-22 22:48:12 +0000 |
commit | 9c3ba613471d92da19e412c5abbb2cb381fbd3ef (patch) | |
tree | 8319995f0c664bbcbfed7b293679fcccd3bf83a8 /src | |
parent | 2dd9bc672a2205c6c25b0d1472421fdb5976f125 (diff) | |
download | openttd-9c3ba613471d92da19e412c5abbb2cb381fbd3ef.tar.xz |
(svn r14132) -Fix (r14039): Only reserve a path on leaving a station if the current block really is a PBS block. (michi_cc)
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 4d4b774e7..870c13573 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2467,9 +2467,10 @@ void Vehicle::LeaveStation() /* 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); + } } } |