Change casting SFX volume when the SFX volume slider is changed. Release Build 8134.

This commit is contained in:
sigonasr2 2024-03-15 01:07:12 -05:00
parent 122e3ecffd
commit f5435e12db
3 changed files with 6 additions and 1 deletions

View File

@ -339,6 +339,11 @@ bool AiL::OnUserUpdate(float fElapsedTime){
lastMouseMovement=0.f; lastMouseMovement=0.f;
lastMousePos=GetMousePos(); lastMousePos=GetMousePos();
}else lastMouseMovement+=fElapsedTime; }else lastMouseMovement+=fElapsedTime;
if(Audio::Engine().IsPlaying(GetPlayer()->cooldownSoundInstance)){
Audio::Engine().SetVolume(GetPlayer()->cooldownSoundInstance,Audio::GetCalculatedSFXVolume("Audio.Casting Sound Volume"_F/100.f));
}
if(!GamePaused()){ if(!GamePaused()){
GameState::STATE->OnUserUpdate(this); GameState::STATE->OnUserUpdate(this);
}else{ }else{

View File

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 5 #define VERSION_MINOR 5
#define VERSION_PATCH 1 #define VERSION_PATCH 1
#define VERSION_BUILD 8131 #define VERSION_BUILD 8134
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a