Prevent music changes from playing when unfocused

This commit is contained in:
fickleheart 2019-03-11 21:48:29 -05:00
parent b91701c948
commit b028f33455

View file

@ -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;
}