Skip to content

Commit 00caa2e

Browse files
authored
Merge pull request #405 from Csantucci/fix-fog-distance-increase
Bug fix for https://bugs.launchpad.net/or/+bug/1926983 Fog distance can't be initialized to value > 20000
2 parents 82db9a7 + 033ff10 commit 00caa2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/RunActivity/Viewer3D/Weather.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ public void WeatherChange_Init(ORTSWeatherChange eventWeatherChange, WeatherCont
640640
{
641641
fogDistanceIncreasing = true;
642642
fogChangeRate = -fogChangeRate;
643-
ORTSFog = weatherControl.Weather.FogDistance;
643+
if (fogTimer > 0) ORTSFog = weatherControl.Weather.FogDistance;
644644
}
645645
wChangeOn = true;
646646
}

0 commit comments

Comments
 (0)