-bgvolume switch stays... Allows CD music/ambient music to play while minimized

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@242 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
stevenaaus 2010-07-26 08:47:11 +00:00
parent ab217aaf82
commit 6ffcbdc338

View file

@ -100,10 +100,12 @@ int main(int argc, char *argv[])
case SDL_ACTIVEEVENT:
if (event.active.state & (SDL_APPACTIVE|SDL_APPINPUTFOCUS))
{
if (event.active.gain)
S_UnblockSound();
else
S_BlockSound();
if (!COM_CheckParm("-bgsound")) {
if (event.active.gain)
S_UnblockSound();
else
S_BlockSound();
}
}
break;
case SDL_MOUSEMOTION: