From 6ffcbdc338fe3af00b03b420f1604eb7eb71fe2d Mon Sep 17 00:00:00 2001 From: stevenaaus Date: Mon, 26 Jul 2010 08:47:11 +0000 Subject: [PATCH] -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 --- quakespasm/Quake/main_sdl.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/quakespasm/Quake/main_sdl.c b/quakespasm/Quake/main_sdl.c index e1938a46..4056911b 100644 --- a/quakespasm/Quake/main_sdl.c +++ b/quakespasm/Quake/main_sdl.c @@ -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: