]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
implemented two more checks for cls.timedemo to bypass snd_blocked
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 12 Apr 2007 00:37:20 +0000 (00:37 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 12 Apr 2007 00:37:20 +0000 (00:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7080 d7cf8633-e32d-0410-b094-e92efae38249

snd_main.c

index 9c6bd696b897f073c8086c1387b1ea951fe22696..14e2a6a8bb461b53c25b142ab3a68249f4f36fc9 100644 (file)
@@ -1431,7 +1431,7 @@ static void S_PaintAndSubmit (void)
        if (snd_renderbuffer == NULL || nosound.integer)
                return;
 
-       if (snd_blocked > 0 && !(cls.capturevideo.soundrate && !cls.capturevideo.realtime))
+       if (snd_blocked > 0 && !cls.timedemo && !(cls.capturevideo.soundrate && !cls.capturevideo.realtime))
                return;
 
        // Update sound time
@@ -1506,7 +1506,7 @@ void S_Update(const matrix4x4_t *listenermatrix)
        if (snd_renderbuffer == NULL || nosound.integer)
                return;
 
-       if (snd_blocked > 0 && !(cls.capturevideo.soundrate && !cls.capturevideo.realtime))
+       if (snd_blocked > 0 && !cls.timedemo && !(cls.capturevideo.soundrate && !cls.capturevideo.realtime))
                return;
 
        // If snd_swapstereo or snd_channellayout has changed, recompute the channel layout