equal
deleted
inserted
replaced
3652 |
3652 |
3653 /* check if a train is waiting on the other side */ |
3653 /* check if a train is waiting on the other side */ |
3654 if (VehicleFromPos(o_tile, &exitdir, &CheckVehicleAtSignal) == NULL) return; |
3654 if (VehicleFromPos(o_tile, &exitdir, &CheckVehicleAtSignal) == NULL) return; |
3655 } |
3655 } |
3656 } |
3656 } |
|
3657 |
|
3658 /* If we would reverse but are currently in a PBS block and |
|
3659 * reversing of stuck trains is disabled, don't reverse. */ |
|
3660 if (_settings_game.pf.wait_for_pbs_path == 255 && UpdateSignalsOnSegment(v->tile, enterdir, v->owner) == SIGSEG_PBS) { |
|
3661 v->load_unload_time_rem = 0; |
|
3662 return; |
|
3663 } |
3657 goto reverse_train_direction; |
3664 goto reverse_train_direction; |
3658 } |
3665 } |
3659 } else { |
3666 } else { |
3660 static const TrackBits _matching_tracks[8] = { |
3667 static const TrackBits _matching_tracks[8] = { |
3661 TRACK_BIT_LEFT | TRACK_BIT_RIGHT, TRACK_BIT_X, |
3668 TRACK_BIT_LEFT | TRACK_BIT_RIGHT, TRACK_BIT_X, |