Audio casting sound volume did not respect SFX option setting.
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user