Audio casting sound volume did not respect SFX option setting.

This commit is contained in:
2024-03-12 20:00:20 -05:00
parent 25654fc0da
commit 48ce0c6cd9
4 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ void Player::Update(float fElapsedTime){
if(state==State::CASTING){
if(!Audio::Engine().IsPlaying(cooldownSoundInstance)){
Audio::Engine().SetVolume(cooldownSoundInstance,"Audio.Casting Sound Volume"_F/100.f);
Audio::Engine().SetVolume(cooldownSoundInstance,Audio::GetCalculatedSFXVolume("Audio.Casting Sound Volume"_F/100.f));
Audio::Engine().Play(cooldownSoundInstance,true);
}
}else{