mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-02 03:36:40 +00:00
Fix weather sounds playing at full volume before fading in
This commit is contained in:
parent
892d1b162d
commit
342c25dffa
1 changed files with 1 additions and 1 deletions
|
@ -731,7 +731,7 @@ void WeatherManager::update(float duration, bool paused)
|
||||||
{
|
{
|
||||||
stopSounds();
|
stopSounds();
|
||||||
if (!mResult.mAmbientLoopSoundID.empty())
|
if (!mResult.mAmbientLoopSoundID.empty())
|
||||||
mAmbientSound = MWBase::Environment::get().getSoundManager()->playSound(mResult.mAmbientLoopSoundID, 1.0, 1.0, MWBase::SoundManager::Play_TypeSfx, MWBase::SoundManager::Play_Loop);
|
mAmbientSound = MWBase::Environment::get().getSoundManager()->playSound(mResult.mAmbientLoopSoundID, mResult.mAmbientSoundVolume, 1.0, MWBase::SoundManager::Play_TypeSfx, MWBase::SoundManager::Play_Loop);
|
||||||
|
|
||||||
mPlayingSoundID = mResult.mAmbientLoopSoundID;
|
mPlayingSoundID = mResult.mAmbientLoopSoundID;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue