File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Source/Orts.Simulation/Simulation/Signalling Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,14 @@ public enum BlockState
94
94
/// <param name="signalAspect">Aspect for which the default draw state must be found</param>
95
95
/// <returns></returns>
96
96
public int DefaultDrawState ( Aspect signalAspect ) => SignalHead . def_draw_state ( ( MstsSignalAspect ) signalAspect ) ;
97
+
97
98
/// <summary>
98
99
/// Index of the draw state with the specified name
99
100
/// </summary>
100
101
/// <param name="name">Name of the draw state as defined in sigcfg</param>
101
102
/// <returns>The index of the draw state, -1 if no one exist with that name</returns>
102
- public int GetDrawState ( string name ) => SignalHead . signalType . DrawStates . TryGetValue ( name , out SignalDrawState drawState ) ? drawState . Index : - 1 ;
103
+ public int GetDrawState ( string name ) => SignalHead . signalType . DrawStates . TryGetValue ( name . ToLower ( ) , out SignalDrawState drawState ) ? drawState . Index : - 1 ;
104
+
103
105
/// <summary>
104
106
/// Signal identity of this signal
105
107
/// </summary>
You can’t perform that action at this time.
0 commit comments