File tree 1 file changed +2
-2
lines changed
Source/Orts.Simulation/Simulation
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1955,14 +1955,14 @@ private void StartSwitchPlayerTrain()
1955
1955
TrainSwitcher . ClickedSelectedAsPlayer = false ;
1956
1956
return ;
1957
1957
}
1958
- if ( playerTrain . TrainType == Train . TRAINTYPE . AI_PLAYERDRIVEN || ! playerTrain . Autopilot )
1958
+ if ( playerTrain . TrainType == Train . TRAINTYPE . AI_PLAYERDRIVEN || TimetableMode && ! playerTrain . Autopilot )
1959
1959
{
1960
1960
// it must be autopiloted first
1961
1961
playerTrain . SwitchToAutopilotControl ( ) ;
1962
1962
}
1963
1963
// and now switch!
1964
1964
playerTrain . TrainType = Train . TRAINTYPE . AI ;
1965
- playerTrain . Autopilot = false ;
1965
+ if ( ! TimetableMode ) AI . AITrains . Add ( playerTrain ) ;
1966
1966
if ( TrainSwitcher . SuspendOldPlayer )
1967
1967
{
1968
1968
playerTrain . MovementState = AITrain . AI_MOVEMENT_STATE . SUSPENDED ;
You can’t perform that action at this time.
0 commit comments