From: havoc Date: Thu, 12 Apr 2007 00:37:20 +0000 (+0000) Subject: implemented two more checks for cls.timedemo to bypass snd_blocked X-Git-Tag: xonotic-v0.1.0preview~3345 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=26956b9c096b3ba04df224596245cc2f3f012c00;p=xonotic%2Fdarkplaces.git implemented two more checks for cls.timedemo to bypass snd_blocked git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7080 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_main.c b/snd_main.c index 9c6bd696..14e2a6a8 100644 --- a/snd_main.c +++ b/snd_main.c @@ -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