mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 22:53:53 +00:00
fixed first weather transition being instant
This commit is contained in:
parent
dbde8405f7
commit
dbf7547003
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,6 @@ void WeatherManager::setWeather(const String& weather, bool instant)
|
|||
{
|
||||
mNextWeather = "";
|
||||
mCurrentWeather = weather;
|
||||
mFirstUpdate = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -355,6 +354,7 @@ void WeatherManager::setWeather(const String& weather, bool instant)
|
|||
mNextWeather = weather;
|
||||
mRemainingTransitionTime = mWeatherSettings[mCurrentWeather].mTransitionDelta*24.f*3600;
|
||||
}
|
||||
mFirstUpdate = false;
|
||||
}
|
||||
|
||||
WeatherResult WeatherManager::getResult(const String& weather)
|
||||
|
|
Loading…
Reference in a new issue