Skip to content

Commit 5a8da77

Browse files
committed
Fix typo in cabview control name
1 parent 4c52f58 commit 5a8da77

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Source/Documentation/Manual/cruisecontrol.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ Cruise Control Cabview Controls
283283
===============================
284284

285285
The list of the available cabview controls may be found in the
286-
table here below.
286+
table here below. Please note that spaces within cabview control
287+
names are there only for table display purposes, and must not be
288+
entered in the .cvf files.
287289

288290
.. csv-table:: Cabview Controls
289291
:header: "Control Name", "Description", "UoM", "Mouse activated"
@@ -299,7 +301,7 @@ table here below.
299301
"ORTS_NUMBER_OF_AXES_DISPLAY_TENS", "See above", "",
300302
"ORTS_NUMBER_OF_AXES_DISPLAY_HUNDREDS", "See above", "",
301303
"ORTS_TRAIN_LENGTH_METERS", "Displays the train length", "meters",
302-
"ORTS_REMAINING_TRAIN_LENGHT_SPEED _RESTRICTED", "When the restricted speed zone flag is activated, displays the remaining train lenght that hasn't yet arrived at the end of the restricted speed zone. Else shows 0", "meters",
304+
"ORTS_REMAINING_TRAIN_LENGTH_SPEED _RESTRICTED", "When the restricted speed zone flag is activated, displays the remaining train lenght that hasn't yet arrived at the end of the restricted speed zone. Else shows 0", "meters",
303305
"ORTS_REMAINING_TRAIN_LENGTH_PERCENT", "When the restricted speed zone flag is activated, displays the remaining train lenght percent that hasn't yet arrived at the end of the restricted speed zone. Else shows 0", "",
304306
"ORTS_ACCELERATION_IN_TIME", "Value of AccelerationBits; some cabs can show 'Arrows' pointing up or down according to speed change", "",
305307

Source/Orts.Formats.Msts/CabViewFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public enum CABViewControlTypes
277277
ORTS_NUMBER_OF_AXES_DISPLAY_TENS,
278278
ORTS_NUMBER_OF_AXES_DISPLAY_HUNDREDS,
279279
ORTS_TRAIN_LENGTH_METERS,
280-
ORTS_REMAINING_TRAIN_LENGHT_SPEED_RESTRICTED,
280+
ORTS_REMAINING_TRAIN_LENGTH_SPEED_RESTRICTED,
281281
ORTS_REMAINING_TRAIN_LENGTH_PERCENT,
282282
ORTS_MOTIVE_FORCE,
283283
ORTS_MOTIVE_FORCE_KILONEWTON,

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/CruiseControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ public float GetDataOf(CabViewControl cvc)
14181418
case CABViewControlTypes.ORTS_TRAIN_LENGTH_METERS:
14191419
data = TrainLengthMeters;
14201420
break;
1421-
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGHT_SPEED_RESTRICTED:
1421+
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGTH_SPEED_RESTRICTED:
14221422
data = RestrictedRegionOdometer.Started ? RestrictedRegionOdometer.RemainingValue : 0;
14231423
break;
14241424
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGTH_PERCENT:

Source/RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2301,7 +2301,7 @@ public virtual int GetDrawIndex()
23012301
case CABViewControlTypes.ORTS_NUMBER_OF_AXES_DISPLAY_TENS:
23022302
case CABViewControlTypes.ORTS_NUMBER_OF_AXES_DISPLAY_HUNDREDS:
23032303
case CABViewControlTypes.ORTS_TRAIN_LENGTH_METERS:
2304-
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGHT_SPEED_RESTRICTED:
2304+
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGTH_SPEED_RESTRICTED:
23052305
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGTH_PERCENT:
23062306
case CABViewControlTypes.ORTS_MOTIVE_FORCE:
23072307
case CABViewControlTypes.ORTS_MOTIVE_FORCE_KILONEWTON:

0 commit comments

Comments
 (0)