Skip to content

Commit 55ee45e

Browse files
committed
Clean-up
1 parent 698c013 commit 55ee45e

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Source/RunActivity/Viewer3D/Debugging/DebugViewerBetaForm.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -665,14 +665,9 @@ private void SetTrainColor(Train t, TrainCar locoCar, TrainCar car)
665665
// inactive car: RGB 0,153,0
666666
if (MapDataProvider.IsActiveTrain(t as AITrain))
667667
{
668-
if (car is MSTSLocomotive)
669-
{
670-
trainPen.Color = (car == locoCar) ? Color.FromArgb(204, 170, 0) : Color.FromArgb(153, 128, 0);
671-
}
672-
else
673-
{
674-
trainPen.Color = Color.FromArgb(0, 204, 0);
675-
}
668+
trainPen.Color = car is MSTSLocomotive
669+
? (car == locoCar) ? Color.FromArgb(204, 170, 0) : Color.FromArgb(153, 128, 0)
670+
: Color.FromArgb(0, 204, 0);
676671
}
677672
else
678673
{

0 commit comments

Comments
 (0)