Skip to content

Commit 3b7bd44

Browse files
committed
Automatic merge of T1.5.1-573-g9a8e6af15 and 13 pull requests
- Pull request #757 at 98dd1a7: Unify RailDriver code implementations - Pull request #831 at 3e672a8: poor mans switch panel on tablet - Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters - Pull request #841 at 410a585: https://blueprints.launchpad.net/or/+spec/animating-trainset-windows - Pull request #853 at d05f581: Notify out of focus - Pull request #855 at b39e5d8: Adds new route from TrainSimulations - Pull request #857 at 9afc8c3: Adding Air Flow Meters - Pull request #863 at a34b857: Alternate preset 3D cabviewpoints - Pull request #864 at e71bc5a: Fixes for Undesired Emergency Applications - Pull request #865 at 776d6df: Dispatcher window improvements - Pull request #866 at c15333e: Fix Articulation For 0-Axle Train Cars - Pull request #870 at 5cb32fa: Fix water restore - Pull request #873 at cf0ed99: Reduce allocations in signal script
15 parents f517a67 + 9a8e6af + 98dd1a7 + 3e672a8 + d00beb9 + 410a585 + d05f581 + b39e5d8 + 9afc8c3 + a34b857 + e71bc5a + 776d6df + c15333e + 5cb32fa + cf0ed99 commit 3b7bd44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Orts.Simulation/Simulation/Signalling/CsSignalScript.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ public string IdTextSignalAspect(int id, string sigfn, int headindex=0)
230230
var heads = SignalObjectById(id)?.SignalHeads;
231231
if (heads != null)
232232
{
233-
foreach (SignalHead head in heads.Where(head => head.Function == function))
233+
foreach (SignalHead head in heads)
234234
{
235+
if (head.Function != function) continue;
235236
if (headindex <= 0) return head.TextSignalAspect;
236237
headindex--;
237238
}

0 commit comments

Comments
 (0)