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 31
31
using Orts . Simulation . RollingStocks . SubSystems . Brakes . MSTS ;
32
32
using ORTS . Scripting . Api ;
33
33
using System . IO ;
34
- using Orts . Simulation . Physics ;
35
- using Orts . Simulation . RollingStocks . SubSystems . Brakes ;
36
34
37
35
namespace Orts . Viewer3D . WebServices
38
36
{
@@ -710,6 +708,7 @@ public void buttonCouplerFrontClick(int carPosition)
710
708
TrainCarViewer . NewCarPosition = carPosition - 1 ;
711
709
if ( Viewer . CarOperationsWindow . CarPosition > carPosition - 1 )
712
710
Viewer . CarOperationsWindow . Visible = false ;
711
+ Viewer . TrainCarOperationsWindow . SelectedCarPosition = 0 ;
713
712
}
714
713
}
715
714
@@ -808,6 +807,7 @@ public void buttonCouplerRearClick(int carPosition)
808
807
TrainCarViewer . CouplerChanged = true ;
809
808
if ( Viewer . CarOperationsWindow . CarPosition > carPosition )
810
809
Viewer . CarOperationsWindow . Visible = false ;
810
+ Viewer . TrainCarOperationsWindow . SelectedCarPosition = 0 ;
811
811
}
812
812
}
813
813
You can’t perform that action at this time.
0 commit comments