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.
This commit is contained in:

committed by
Charles Pigott

parent
456e67ac1c
commit
690d1dd6a4
@@ -3186,12 +3186,12 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
|
|||||||
v->cur_speed = 0;
|
v->cur_speed = 0;
|
||||||
v->subspeed = 0;
|
v->subspeed = 0;
|
||||||
v->progress = 255; // make sure that every bit of acceleration will hit the signal again, so speed stays 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)) {
|
} else if (HasSignalOnTrackdir(gp.new_tile, i)) {
|
||||||
v->cur_speed = 0;
|
v->cur_speed = 0;
|
||||||
v->subspeed = 0;
|
v->subspeed = 0;
|
||||||
v->progress = 255; // make sure that every bit of acceleration will hit the signal again, so speed stays 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);
|
DiagDirection exitdir = TrackdirToExitdir(i);
|
||||||
TileIndex o_tile = TileAddByDiagDir(gp.new_tile, exitdir);
|
TileIndex o_tile = TileAddByDiagDir(gp.new_tile, exitdir);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user