Skip to content

Commit d133921

Browse files
committed
Further checks added
1 parent 556ad1d commit d133921

File tree

1 file changed

+1
-1
lines changed
  • Source/Orts.Simulation/Simulation/Physics

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Simulation/Physics/Train.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ public virtual void Update(float elapsedClockSeconds, bool auxiliaryUpdate = tru
20092009
// Initialise track joint trigger points. Sets the trigger point for the track joint reletative to other cars.
20102010
// This is then reset every time a track joint is triggered, and positioned the same distance apart, hence reletative positions are maintained.
20112011
// Only runs once at start up.
2012-
if (TrackJointSoundSetupInitialise && (float)Simulator.TRK.Tr_RouteFile.DistanceBetweenTrackJointsM > 0)
2012+
if (TrackJointSoundSetupInitialise && (float)Simulator.TRK.Tr_RouteFile.DistanceBetweenTrackJointsM > 0 && Simulator.TRK.Tr_RouteFile.TrackSoundDefaultContinuousPlay)
20132013
{
20142014
var trackjointdistanceM = (float)Simulator.TRK.Tr_RouteFile.DistanceBetweenTrackJointsM;
20152015
var trainLengthM = 0.0f;

0 commit comments

Comments
 (0)