Skip to content

Commit 4f927c4

Browse files
committed
Automatic merge of T1.5.1-870-ge0bf062eb and 18 pull requests
- Pull request #570 at 3539862: Experimental glTF 2.0 support with PBR lighting - 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 9c456aa: Blueprint/train car operations UI window - Pull request #885 at 8f94333: feat: Add notifications to Menu - Pull request #886 at 6c0785b: Scene viewer extension to TrackViewer - 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 #897 at 42f1dd9: feat: Improved system information collection - Pull request #903 at e6baa97: Downloading route content (Github, zip) - Pull request #907 at 9b0b04f: Bug fix for https://bugs.launchpad.net/or/+bug/2047300 Dynamic tracks disappear after long tunnel - Pull request #911 at 6834af0: docs: Add refactoring as a special type of PR - Pull request #912 at 659396e: New Triple Valve Features Vol. 2 - Pull request #914 at 8e50570: Adjustments to Duplex steam - Pull request #915 at 6d911d7: Correct calculation error with curve friction - Pull request #916 at 11ac52c: Distributed Power Air Brake Synchronization - Pull request #917 at fde18cf: Lighting Configuration Enhancements - Pull request #918 at f7ba507: Manual - News topics updated since 1.5.1
20 parents fb4d95d + e0bf062 + 3539862 + d00beb9 + f92de76 + 9c456aa + 8f94333 + 6c0785b + 1f5ba4c + 5866028 + 42f1dd9 + e6baa97 + 9b0b04f + 6834af0 + 659396e + 8e50570 + 6d911d7 + 11ac52c + fde18cf + f7ba507 commit 4f927c4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSSteamLocomotive.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,11 +2606,6 @@ private void UpdateFX(float elapsedClockSeconds)
26062606
// The duration time is reduced with speed to reduce the steam trail behind the locomotive when running at speed.
26072607
// Any of the steam effects can be disabled by not defining them in the ENG file, and thus they will not be displayed in the viewer.
26082608

2609-
2610-
float[] ExhaustnormalisedCrankAngleRad = new float[3];
2611-
float[] ExhaustexhaustCrankAngleRad = new float[3];
2612-
2613-
26142609
// Cylinder steam cock effects
26152610
if (CylinderAdvancedSteamEffects) // For advanced steam effects process each cylinder individually -
26162611
// - all ENG files will need to be changed.
@@ -2626,7 +2621,10 @@ private void UpdateFX(float elapsedClockSeconds)
26262621
TotalNumberCyindersEng1 = SteamEngines[0].NumberCylinders;
26272622
}
26282623

2629-
// Engine #1
2624+
float[] ExhaustnormalisedCrankAngleRad = new float[TotalNumberCyindersEng1];
2625+
float[] ExhaustexhaustCrankAngleRad = new float[TotalNumberCyindersEng1];
2626+
2627+
// Engine #1
26302628
for (int i = 0; i < TotalNumberCyindersEng1; i++)
26312629
{
26322630
var crankAngleDiffRad = WheelCrankAngleDiffRad[i];

0 commit comments

Comments
 (0)