|
|
@ -348,7 +348,7 @@ void WeatherManager::transition(float factor)
|
|
|
|
mResult.mRainFrequency = current.mRainFrequency;
|
|
|
|
mResult.mRainFrequency = current.mRainFrequency;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WeatherManager::update(float duration)
|
|
|
|
void WeatherManager::update(float duration, bool paused)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
float timePassed = mTimePassed;
|
|
|
|
float timePassed = mTimePassed;
|
|
|
|
mTimePassed = 0;
|
|
|
|
mTimePassed = 0;
|
|
|
@ -483,6 +483,8 @@ void WeatherManager::update(float duration)
|
|
|
|
mRendering->getSkyManager()->secundaDisable();
|
|
|
|
mRendering->getSkyManager()->secundaDisable();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!paused)
|
|
|
|
|
|
|
|
{
|
|
|
|
if (mCurrentWeather == "thunderstorm" && mNextWeather == "")
|
|
|
|
if (mCurrentWeather == "thunderstorm" && mNextWeather == "")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (mThunderFlash > 0)
|
|
|
|
if (mThunderFlash > 0)
|
|
|
@ -529,6 +531,8 @@ void WeatherManager::update(float duration)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
mRendering->getSkyManager()->setLightningStrength(0.f);
|
|
|
|
mRendering->getSkyManager()->setLightningStrength(0.f);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mRendering->setAmbientColour(mResult.mAmbientColor);
|
|
|
|
mRendering->setAmbientColour(mResult.mAmbientColor);
|
|
|
|
mRendering->sunEnable(false);
|
|
|
|
mRendering->sunEnable(false);
|
|
|
|