Changeset - r23344:3b4e3767cd40
[Not reviewed]
master
0 1 0
Michael Lutz - 6 years ago 2019-02-19 21:02:05
michi@icosahedron.de
Fix #7159, e934f09: Waiting time at red one-way signals was too short.

This is not an exact fix as previously, the wait time was speed/acceleration dependant. This simple fix ignores that and just makes the 'days' from the settings comment to be actually days.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/train_cmd.cpp
Show inline comments
 
@@ -3186,12 +3186,12 @@ bool TrainController(Train *v, Vehicle *
 
							v->cur_speed = 0;
 
							v->subspeed = 0;
 
							v->progress = 255; // make sure that every bit of acceleration will hit the signal again, so speed stays 0.
 
							if (!_settings_game.pf.reverse_at_signals || ++v->wait_counter < _settings_game.pf.wait_oneway_signal * 20) return false;
 
							if (!_settings_game.pf.reverse_at_signals || ++v->wait_counter < _settings_game.pf.wait_oneway_signal * DAY_TICKS * 2) return false;
 
						} else if (HasSignalOnTrackdir(gp.new_tile, i)) {
 
							v->cur_speed = 0;
 
							v->subspeed = 0;
 
							v->progress = 255; // make sure that every bit of acceleration will hit the signal again, so speed stays 0.
 
							if (!_settings_game.pf.reverse_at_signals || ++v->wait_counter < _settings_game.pf.wait_twoway_signal * 73) {
 
							if (!_settings_game.pf.reverse_at_signals || ++v->wait_counter < _settings_game.pf.wait_twoway_signal * DAY_TICKS * 2) {
 
								DiagDirection exitdir = TrackdirToExitdir(i);
 
								TileIndex o_tile = TileAddByDiagDir(gp.new_tile, exitdir);
 

	
0 comments (0 inline, 0 general)