mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-25 21:31:44 +00:00
Prevent music changes from playing when unfocused
This commit is contained in:
parent
0f9648eac0
commit
1975a9b885
1 changed files with 4 additions and 0 deletions
|
@ -1906,6 +1906,10 @@ static boolean S_PlayMusic(boolean looping)
|
|||
}
|
||||
|
||||
S_InitMusicVolume(); // switch between digi and sequence volume
|
||||
|
||||
if (window_notinfocus && !cv_playmusicifunfocused.value)
|
||||
I_PauseSong();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue