Skip to content

Commit 922cd92

Browse files
author
Chris Jakeman
committed
Changed unwanted plural to singular
1 parent 0a8a211 commit 922cd92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/Orts.Formats.Msts/CabViewFile.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ public class CVCDiscrete : CVCWithFrames
855855
private int numPositions;
856856
private bool canFill = true;
857857

858-
public CVCDiscrete(STFReader stf, string basepath, DiscreteStates discreteStates)
858+
public CVCDiscrete(STFReader stf, string basepath, DiscreteStates discreteState)
859859
{
860860
// try
861861
{
@@ -1160,7 +1160,7 @@ public CVCDiscrete(STFReader stf, string basepath, DiscreteStates discreteStates
11601160
if (ControlType == CABViewControlTypes.DIRECTION && Orientation == 0)
11611161
Direction = 1 - Direction;
11621162

1163-
switch (discreteStates)
1163+
switch (discreteState)
11641164
{
11651165
case DiscreteStates.TRI_STATE:
11661166
MaxValue = 2.0f; // So that LocomotiveViewerExtensions.GetWebControlValueList() returns right value to web server
@@ -1312,8 +1312,8 @@ protected void ParseCustomParameters(STFReader stf)
13121312
#region other controls
13131313
public class CVCSignal : CVCDiscrete
13141314
{
1315-
public CVCSignal(STFReader inf, string basepath, DiscreteStates discreteStates)
1316-
: base(inf, basepath, discreteStates)
1315+
public CVCSignal(STFReader inf, string basepath, DiscreteStates discreteState)
1316+
: base(inf, basepath, discreteState)
13171317
{
13181318
FramesCount = 8;
13191319
FramesX = 4;

0 commit comments

Comments
 (0)