Skip to content

Commit d87ce8c

Browse files
committed
Automatic merge of T1.5.1-992-g1383ac843 and 16 pull requests
- Pull request #799 at dfc715e: Consolidated wind simulation - Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters - Pull request #876 at f92de76: docs: add source for documents previously on website to source Documentation folder - Pull request #882 at b3f83ed: Blueprint/train car operations UI window - Pull request #885 at 56c17fb: feat: Add notifications to Menu - Pull request #891 at 9a1d6b2: Auto save - Pull request #892 at 1f5ba4c: Signal Function OPP_SIG_ID_TRAINPATH - Pull request #896 at 5866028: First implementation of https://blueprints.launchpad.net/or/+spec/specific-sounds-for-ai-trains - Pull request #900 at c27f32d: DMI updates - Pull request #903 at 3e390b8: Downloading route content (Github, zip) - Pull request #912 at 9305062: New Triple Valve Features Vol. 2 - Pull request #922 at abe2e52: Autopilot for timetable mode - Pull request #946 at 66f836c: Advanced track sounds - Pull request #948 at a0e160c: Fix Cycling Lights - Pull request #949 at c2a5d32: Oil Burning Locomotive - Pull request #950 at a98ff62: Ctrl-F5 showing yellow rectangles where mouse left button is active
18 parents ce82010 + 1383ac8 + dfc715e + d00beb9 + f92de76 + b3f83ed + 56c17fb + 9a1d6b2 + 1f5ba4c + 5866028 + c27f32d + 3e390b8 + 9305062 + abe2e52 + 66f836c + a0e160c + c2a5d32 + a98ff62 commit d87ce8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/RunActivity/Viewer3D/Lights.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,12 @@ public override void Draw(GraphicsDevice graphicsDevice)
891891

892892
protected override void UpdateStates(int stateIndex1, int stateIndex2)
893893
{
894+
// Cycling light: state index will be set above actual number of states
895+
if (stateIndex1 >= Light.States.Count)
896+
stateIndex1 = StateCount - stateIndex1;
897+
if (stateIndex2 >= Light.States.Count)
898+
stateIndex2 = StateCount - stateIndex2;
899+
894900
var state1 = Light.States[stateIndex1];
895901
var state2 = Light.States[stateIndex2];
896902

0 commit comments

Comments
 (0)