File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Source/RunActivity/Viewer3D/WebServices Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3131using Orts . Simulation . RollingStocks . SubSystems . Brakes . MSTS ;
3232using ORTS . Scripting . Api ;
3333using System . IO ;
34- using Orts . Simulation . Physics ;
35- using Orts . Simulation . RollingStocks . SubSystems . Brakes ;
3634
3735namespace Orts . Viewer3D . WebServices
3836{
@@ -710,6 +708,7 @@ public void buttonCouplerFrontClick(int carPosition)
710708 TrainCarViewer . NewCarPosition = carPosition - 1 ;
711709 if ( Viewer . CarOperationsWindow . CarPosition > carPosition - 1 )
712710 Viewer . CarOperationsWindow . Visible = false ;
711+ Viewer . TrainCarOperationsWindow . SelectedCarPosition = 0 ;
713712 }
714713 }
715714
@@ -808,6 +807,7 @@ public void buttonCouplerRearClick(int carPosition)
808807 TrainCarViewer . CouplerChanged = true ;
809808 if ( Viewer . CarOperationsWindow . CarPosition > carPosition )
810809 Viewer . CarOperationsWindow . Visible = false ;
810+ Viewer . TrainCarOperationsWindow . SelectedCarPosition = 0 ;
811811 }
812812 }
813813
You can’t perform that action at this time.
0 commit comments