1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 01:45:34 +00:00

Fixed fading problem

This commit is contained in:
Glorf 2013-05-10 19:33:43 +02:00
parent 9cc85cbe81
commit 6aaa8d6dc0

View file

@ -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