Skip to content

Commit

Permalink
Fix typo in cabview control name
Browse files Browse the repository at this point in the history
  • Loading branch information
Csantucci committed Nov 7, 2022
1 parent 4c52f58 commit 5a8da77
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Source/Documentation/Manual/cruisecontrol.rst
Expand Up @@ -283,7 +283,9 @@ Cruise Control Cabview Controls
===============================

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

.. csv-table:: Cabview Controls
:header: "Control Name", "Description", "UoM", "Mouse activated"
Expand All @@ -299,7 +301,7 @@ table here below.
"ORTS_NUMBER_OF_AXES_DISPLAY_TENS", "See above", "",
"ORTS_NUMBER_OF_AXES_DISPLAY_HUNDREDS", "See above", "",
"ORTS_TRAIN_LENGTH_METERS", "Displays the train length", "meters",
"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",
"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",
"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", "",
"ORTS_ACCELERATION_IN_TIME", "Value of AccelerationBits; some cabs can show 'Arrows' pointing up or down according to speed change", "",

Expand Down
2 changes: 1 addition & 1 deletion Source/Orts.Formats.Msts/CabViewFile.cs
Expand Up @@ -277,7 +277,7 @@ public enum CABViewControlTypes
ORTS_NUMBER_OF_AXES_DISPLAY_TENS,
ORTS_NUMBER_OF_AXES_DISPLAY_HUNDREDS,
ORTS_TRAIN_LENGTH_METERS,
ORTS_REMAINING_TRAIN_LENGHT_SPEED_RESTRICTED,
ORTS_REMAINING_TRAIN_LENGTH_SPEED_RESTRICTED,
ORTS_REMAINING_TRAIN_LENGTH_PERCENT,
ORTS_MOTIVE_FORCE,
ORTS_MOTIVE_FORCE_KILONEWTON,
Expand Down
Expand Up @@ -1418,7 +1418,7 @@ public float GetDataOf(CabViewControl cvc)
case CABViewControlTypes.ORTS_TRAIN_LENGTH_METERS:
data = TrainLengthMeters;
break;
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGHT_SPEED_RESTRICTED:
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGTH_SPEED_RESTRICTED:
data = RestrictedRegionOdometer.Started ? RestrictedRegionOdometer.RemainingValue : 0;
break;
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGTH_PERCENT:
Expand Down
Expand Up @@ -2301,7 +2301,7 @@ public virtual int GetDrawIndex()
case CABViewControlTypes.ORTS_NUMBER_OF_AXES_DISPLAY_TENS:
case CABViewControlTypes.ORTS_NUMBER_OF_AXES_DISPLAY_HUNDREDS:
case CABViewControlTypes.ORTS_TRAIN_LENGTH_METERS:
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGHT_SPEED_RESTRICTED:
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGTH_SPEED_RESTRICTED:
case CABViewControlTypes.ORTS_REMAINING_TRAIN_LENGTH_PERCENT:
case CABViewControlTypes.ORTS_MOTIVE_FORCE:
case CABViewControlTypes.ORTS_MOTIVE_FORCE_KILONEWTON:
Expand Down

0 comments on commit 5a8da77

Please sign in to comment.