src/vehicle.cpp
changeset 9975 214628d1c9e8
parent 9955 1a16c6aee460
child 10056 48659f7d4fa5
--- a/src/vehicle.cpp	Fri Aug 22 22:42:21 2008 +0000
+++ b/src/vehicle.cpp	Fri Aug 22 22:48:12 2008 +0000
@@ -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);
+		}
 	}
 }