Skip to content

Commit

Permalink
Merge pull request #523 from Sharpe49/fix_speed_signals_sig_feature
Browse files Browse the repository at this point in the history
Fix sig_feature function always returning true for SPEED signals
  • Loading branch information
Sharpe49 committed Oct 31, 2021
2 parents a4628ab + 236aebf commit f92b5fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Orts.Simulation/Simulation/Signalling/Signals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
using Orts.Parsers.Msts;
using Orts.Simulation.AIs;
using Orts.Simulation.Physics;
using Orts.Simulation.Timetables;
using ORTS.Common;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -1245,7 +1244,7 @@ private void AddWorldInfo()
{
if (signal != null)
{
if (signal.isSignal)
if (signal.isSignal || signal.isSpeedSignal)
{
foreach (SignalHead head in signal.SignalHeads)
{
Expand Down

0 comments on commit f92b5fa

Please sign in to comment.