1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 13:23:52 +00:00

sun gradually disappears

This commit is contained in:
scrawl 2012-03-16 20:39:58 +01:00
parent d18b3271b1
commit 5ea2122f79
2 changed files with 2 additions and 1 deletions

View file

@ -696,6 +696,7 @@ void SkyManager::setWeather(const MWWorld::WeatherResult& weather)
strength = 1.f;
mSunGlare->setVisibility(weather.mGlareView * strength);
mSun->setVisibility(strength);
mAtmosphereNight->setVisible(weather.mNight && mEnabled);
}

View file

@ -572,7 +572,7 @@ void WeatherManager::update(float duration)
mRendering->configureFog(result.mFogDepth, result.mFogColor);
// disable sun during night
if (mHour >= 21 || mHour <= 5.5f)
if (mHour >= 20 || mHour <= 6.f)
mRendering->getSkyManager()->sunDisable();
else
{