@@ -318,7 +318,7 @@ private void ModifyWindowSize()
318
318
var locationY = newTop ;
319
319
if ( Owner . Viewer . TrainCarOperationsWindow . LayoutMoved )
320
320
{
321
- CkeckCollision ( newWidth , newHeight , newTop , ref locationX , ref locationY ) ;
321
+ CkeckCollision ( newWidth , newHeight , ref locationX , ref locationY ) ;
322
322
Owner . Viewer . TrainCarOperationsWindow . LayoutMoved = false ;
323
323
}
324
324
MoveTo ( locationX , locationY ) ;
@@ -375,7 +375,7 @@ void AddSpace(bool full)
375
375
var car = PlayerTrain . Cars [ CarPosition ] ;
376
376
//Reset brakes
377
377
var warningCarPos = Owner . Viewer . TrainCarOperationsWindow . WarningCarPosition . Where ( x => x == true ) . Count ( ) ;
378
- line . Add ( new buttonInitializeBrakes ( 0 , 0 , textHeight , Owner . Viewer , CarPosition , warningCarPos ) ) ;
378
+ line . Add ( new buttonInitializeBrakes ( 0 , 0 , textHeight , Owner . Viewer , warningCarPos ) ) ;
379
379
380
380
if ( car != PlayerTrain . Cars . First ( ) )
381
381
AddSpace ( false ) ;
@@ -655,7 +655,7 @@ class buttonInitializeBrakes : Image
655
655
readonly Viewer Viewer ;
656
656
readonly TrainCarOperationsViewerWindow TrainCarViewer ;
657
657
readonly int WarningCars ;
658
- public buttonInitializeBrakes ( int x , int y , int size , Viewer viewer , int carPosition , int warningCars )
658
+ public buttonInitializeBrakes ( int x , int y , int size , Viewer viewer , int warningCars )
659
659
: base ( x , y , size , size )
660
660
{
661
661
Viewer = viewer ;
@@ -838,7 +838,6 @@ class buttonFrontAngleCock : Image
838
838
readonly TrainCarOperationsViewerWindow TrainCarViewer ;
839
839
readonly int CarPosition ;
840
840
readonly bool First ;
841
- readonly float carAngleCockAOpenAmount ;
842
841
public buttonFrontAngleCock ( int x , int y , int size , Viewer viewer , TrainCar car , int carPosition )
843
842
: base ( x , y , size , size )
844
843
{
@@ -1214,7 +1213,7 @@ public Texture2D locomotiveStatus(int CarPosition)
1214
1213
return Texture ;
1215
1214
}
1216
1215
}
1217
- public void CkeckCollision ( int newWidth , int newHeight , int newTop , ref int locationX , ref int locationY )
1216
+ public void CkeckCollision ( int newWidth , int newHeight , ref int locationX , ref int locationY )
1218
1217
{
1219
1218
var trainCarOperations = Owner . Viewer . TrainCarOperationsWindow ;
1220
1219
var trainOperationsViewer = Owner . Viewer . TrainCarOperationsViewerWindow ;
@@ -1229,7 +1228,6 @@ public void CkeckCollision(int newWidth, int newHeight, int newTop, ref int loca
1229
1228
1230
1229
// logic to apply
1231
1230
var displaySizeX = Owner . Viewer . DisplaySize . X ;
1232
- var halfDisplaySizeX = displaySizeX / 2 ;
1233
1231
var DisplaySizeY = Owner . Viewer . DisplaySize . Y ;
1234
1232
var halfDisplaySizeY = DisplaySizeY / 2 ;
1235
1233
var topMarging = tcoLocation . Y ;
0 commit comments