mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:49:55 +00:00
Fix weather sounds persisting on a new game
This commit is contained in:
parent
9f0b34eae0
commit
c8e31725dc
2 changed files with 6 additions and 0 deletions
|
@ -167,6 +167,11 @@ WeatherManager::WeatherManager(MWRender::RenderingManager* rendering,MWWorld::Fa
|
||||||
setFallbackWeather(blizzard,"blizzard");
|
setFallbackWeather(blizzard,"blizzard");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WeatherManager::~WeatherManager()
|
||||||
|
{
|
||||||
|
stopSounds(true);
|
||||||
|
}
|
||||||
|
|
||||||
void WeatherManager::setWeather(const String& weather, bool instant)
|
void WeatherManager::setWeather(const String& weather, bool instant)
|
||||||
{
|
{
|
||||||
if (weather == mCurrentWeather && mNextWeather == "")
|
if (weather == mCurrentWeather && mNextWeather == "")
|
||||||
|
|
|
@ -120,6 +120,7 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WeatherManager(MWRender::RenderingManager*,MWWorld::Fallback* fallback);
|
WeatherManager(MWRender::RenderingManager*,MWWorld::Fallback* fallback);
|
||||||
|
~WeatherManager();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change the weather in the specified region
|
* Change the weather in the specified region
|
||||||
|
|
Loading…
Reference in a new issue