diff --git a/files/data-mw/scripts/omw/esmfallbacks.lua b/files/data-mw/scripts/omw/esmfallbacks.lua index 717a717691..e6ecbf8475 100644 --- a/files/data-mw/scripts/omw/esmfallbacks.lua +++ b/files/data-mw/scripts/omw/esmfallbacks.lua @@ -279,7 +279,10 @@ local function generateDefaultWeathers() rainThreshold = getFloat(('Weather_%s_Rain_Threshold'):format(recordId)), rainMinHeight = getFloat(('Weather_%s_Rain_Height_Min'):format(recordId)), rainMaxHeight = getFloat(('Weather_%s_Rain_Height_Max'):format(recordId)), - cloudsMaximumPercent = getFloat(('Weather_%s_Clouds_Maximum_Percent'):format(recordId)), + -- Morrowind.ini has no value for Ashstorm or Blight. The engine + -- requires (0, 1], so a tiny value keeps the old behavior of + -- swapping cloud textures as soon as the transition starts. + cloudsMaximumPercent = math.max(getFloat(('Weather_%s_Clouds_Maximum_Percent'):format(recordId)), 1e-6), isStorm = windSpeed > fStromWindSpeed, cloudTexture = getString(('Weather_%s_Cloud_Texture'):format(recordId)), distantLandFogFactor = dlFactor,