From 6aaa8d6dc08c2c29f0fcbd4b504ad71753e8b681 Mon Sep 17 00:00:00 2001 From: Glorf Date: Fri, 10 May 2013 19:33:43 +0200 Subject: [PATCH] Fixed fading problem --- apps/openmw/mwworld/weather.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/weather.cpp b/apps/openmw/mwworld/weather.cpp index 1e4b7072b..2605e4a33 100644 --- a/apps/openmw/mwworld/weather.cpp +++ b/apps/openmw/mwworld/weather.cpp @@ -83,7 +83,7 @@ float WeatherManager::calculateAngleFade (const std::string& moonName, float ang float endAngle=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_End_Angle"); float startAngle=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_Start_Angle"); if (angle >= endAngle && angle <= startAngle) - return ((angle - endAngle)/10); //10 is hardcoded, it just works this way + return ((angle - endAngle)/(startAngle-endAngle)); else if (angle < endAngle) return 0.f; else