From: molivier Date: Sun, 4 Jun 2006 22:58:52 +0000 (+0000) Subject: Fixed the "nosound" cvar. Thanks to Willis for having reported this bug X-Git-Tag: xonotic-v0.1.0preview~3957 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=9290dadb868e9097b9c9071157025b61c0a7573d Fixed the "nosound" cvar. Thanks to Willis for having reported this bug git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6416 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_main.c b/snd_main.c index 18cc555a..38ff9d1a 100644 --- a/snd_main.c +++ b/snd_main.c @@ -1279,7 +1279,7 @@ static void S_PaintAndSubmit (void) { unsigned int newsoundtime, paintedtime, endtime, maxtime, usedframes; - if (snd_renderbuffer == NULL || snd_blocked > 0) + if (snd_renderbuffer == NULL || snd_blocked > 0 || nosound.integer) return; // Update sound time @@ -1328,7 +1328,7 @@ void S_Update(const matrix4x4_t *listenermatrix) channel_t *ch, *combine; matrix4x4_t basematrix, rotatematrix; - if (!snd_initialized.integer || snd_blocked > 0 || snd_renderbuffer == NULL) + if (snd_renderbuffer == NULL || snd_blocked > 0 || nosound.integer) return; Matrix4x4_Invert_Simple(&basematrix, listenermatrix);