File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Source/RunActivity/Viewer3D Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1083,9 +1083,6 @@ protected override void OnActivate(bool sameCamera)
1083
1083
isVisibleTrainCarViewerOrWebpage = ( Viewer . TrainCarOperationsWindow . Visible && ! Viewer . TrainCarOperationsViewerWindow . Visible ) || Viewer . TrainCarOperationsViewerWindow . Visible || ( Viewer . TrainCarOperationsWebpage ? . Connections > 0 && Viewer . TrainCarOperationsWebpage . TrainCarSelected ) ;
1084
1084
}
1085
1085
1086
- // Update the camera view
1087
- oldCarPosition = oldCarPosition == 0 && carPosition == 0 ? - 1 : oldCarPosition ;
1088
-
1089
1086
if ( attachedCar == null || attachedCar . Train != Viewer . SelectedTrain || carPosition != oldCarPosition )
1090
1087
{
1091
1088
if ( Front )
Original file line number Diff line number Diff line change @@ -512,9 +512,9 @@ public override void PrepareFrame(ElapsedTime elapsedTime, bool updateFull)
512
512
}
513
513
// Updates power supply status
514
514
else if ( isElectricDieselLocomotive &&
515
- ( PowerSupplyStatus != null && PowerSupplyStatus != Owner . Viewer . PlayerTrain . Cars [ CarPosition ] . GetStatus ( )
515
+ ( PowerSupplyStatus != null && PowerSupplyStatus != Owner . Viewer . PlayerTrain . Cars [ CarPosition ] . GetStatus ( )
516
516
|| ( BatteryStatus != null && BatteryStatus != Owner . Viewer . PlayerTrain . Cars [ CarPosition ] . GetStatus ( ) )
517
- || ( CircuitBreakerState != null && CircuitBreakerState != ( trainCar as MSTSElectricLocomotive ) . ElectricPowerSupply . CircuitBreaker . State . ToString ( ) ) ) )
517
+ || ( CircuitBreakerState != null && ( trainCar is MSTSElectricLocomotive ) && CircuitBreakerState != ( trainCar as MSTSElectricLocomotive ) . ElectricPowerSupply . CircuitBreaker . State . ToString ( ) ) ) )
518
518
{
519
519
Layout ( ) ;
520
520
UpdateWindowSize ( ) ;
You can’t perform that action at this time.
0 commit comments