Skip to content

Commit 899b53d

Browse files
committed
Automatic merge of T1.5.1-368-g38888b34f and 8 pull requests
- Pull request #570 at de7a14f: Experimental glTF 2.0 support with PBR lighting - Pull request #732 at 79e9c38: Improvements for air brakes - Pull request #751 at 00981a2: Web interface to control cab controls with external hardware - Pull request #799 at eb92d81: Consolidated wind simulation - Pull request #803 at 7157e08: Various adjustments to steam adhesion - Pull request #813 at a23bd5c: Refactored garbage generators - Pull request #814 at b102c1c: Bug fix for https://bugs.launchpad.net/or/+bug/2013969 Crash after uncoupling player loco of a train with EOT - Pull request #815 at a5cc165: chore: Add GitHub automatic release notes configuration
10 parents d189903 + 38888b3 + de7a14f + 79e9c38 + 00981a2 + eb92d81 + 7157e08 + a23bd5c + b102c1c + a5cc165 commit 899b53d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/ORTS.Settings/InputSettings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public class InputSettings : SettingsBase
6767

6868
public static readonly UserCommandInput[] DefaultCommands = new UserCommandInput[Enum.GetNames(typeof(UserCommand)).Length];
6969
public readonly UserCommandInput[] Commands = new UserCommandInput[Enum.GetNames(typeof(UserCommand)).Length];
70+
static readonly UserCommand[] UserCommandValues = (UserCommand[])Enum.GetValues(typeof(UserCommand));
7071

7172
static InputSettings()
7273
{
@@ -91,7 +92,7 @@ UserCommand GetCommand(string name)
9192

9293
UserCommand[] GetCommands()
9394
{
94-
return (UserCommand[])Enum.GetValues(typeof(UserCommand));
95+
return UserCommandValues;
9596
}
9697

9798
public override object GetDefaultValue(string name)

0 commit comments

Comments
 (0)