Changeset - r14692:0667dbbad1e0
[Not reviewed]
master
0 1 0
michi_cc - 14 years ago 2010-02-28 08:18:20
michi_cc@openttd.org
(svn r19286) -Fix (r18648): [YAPP] If reversing at path signals was disabled, a train would not reverse when hitting the back of an one-way signal.
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/train_cmd.cpp
Show inline comments
 
@@ -3364,8 +3364,11 @@ static void TrainController(Train *v, Ve
 
						}
 

	
 
						/* If we would reverse but are currently in a PBS block and
 
						 * reversing of stuck trains is disabled, don't reverse. */
 
						if (_settings_game.pf.wait_for_pbs_path == 255 && UpdateSignalsOnSegment(v->tile, enterdir, v->owner) == SIGSEG_PBS) {
 
						 * reversing of stuck trains is disabled, don't reverse.
 
						 * This does not apply if the reason for reversing is a one-way
 
						 * signal blocking us, because a train would then be stuck forever. */
 
						if (_settings_game.pf.wait_for_pbs_path == 255 && !HasOnewaySignalBlockingTrackdir(gp.new_tile, i) &&
 
								UpdateSignalsOnSegment(v->tile, enterdir, v->owner) == SIGSEG_PBS) {
 
							v->wait_counter = 0;
 
							return;
 
						}
0 comments (0 inline, 0 general)