Skip to content
Snippets Groups Projects
Commit 1975a9b8 authored by fickleheart's avatar fickleheart
Browse files

Prevent music changes from playing when unfocused

parent 0f9648ea
Branches
Tags
No related merge requests found
...@@ -1906,6 +1906,10 @@ static boolean S_PlayMusic(boolean looping) ...@@ -1906,6 +1906,10 @@ static boolean S_PlayMusic(boolean looping)
} }
S_InitMusicVolume(); // switch between digi and sequence volume S_InitMusicVolume(); // switch between digi and sequence volume
if (window_notinfocus && !cv_playmusicifunfocused.value)
I_PauseSong();
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment