File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Orts.Simulation/Simulation/Physics Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4362,7 +4362,7 @@ public void CheckFreight()
43624362 IsFreight = true;
43634363 if ((car.WagonType == TrainCar.WagonTypes.Passenger) || (car.IsDriveable && car.HasPassengerCapacity))
43644364 PassengerCarsNumber++;
4365- if (car.IsDriveable && (car as MSTSLocomotive).CabViewList.Count > 0) IsPlayable = true;
4365+ if (car.IsDriveable && (( car as MSTSLocomotive).CabViewList.Count > 0 || car.HasFront3DCab || car.HasRear3DCab) ) IsPlayable = true;
43664366 }
43674367 if (TrainType == TRAINTYPE.AI_INCORPORATED && IncorporatingTrainNo > -1) IsPlayable = true;
43684368 } // CheckFreight
Original file line number Diff line number Diff line change @@ -1688,11 +1688,13 @@ public void ChangeCab()
16881688 void PlayerLocomotiveChanged ( object sender , EventArgs e )
16891689 {
16901690 PlayerLocomotiveViewer = World . Trains . GetViewer ( Simulator . PlayerLocomotive ) ;
1691- CabCamera . Activate ( ) ; // If you need anything else here the cameras should check for it.
1692- SetCommandReceivers ( ) ;
16931691 ThreeDimCabCamera . ChangeCab ( Simulator . PlayerLocomotive ) ;
16941692 HeadOutForwardCamera . ChangeCab ( Simulator . PlayerLocomotive ) ;
16951693 HeadOutBackCamera . ChangeCab ( Simulator . PlayerLocomotive ) ;
1694+ if ( ! Simulator . PlayerLocomotive . HasFront3DCab && ! Simulator . PlayerLocomotive . HasRear3DCab )
1695+ CabCamera . Activate ( ) ; // If you need anything else here the cameras should check for it.
1696+ else ThreeDimCabCamera . Activate ( ) ;
1697+ SetCommandReceivers ( ) ;
16961698 }
16971699
16981700 // change reference to player train when switching train in Timetable mode
You can’t perform that action at this time.
0 commit comments