]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fixed the "nosound" cvar. Thanks to Willis for having reported this bug
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Jun 2006 22:58:52 +0000 (22:58 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Jun 2006 22:58:52 +0000 (22:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6416 d7cf8633-e32d-0410-b094-e92efae38249

snd_main.c

index 18cc555a93d4da94791385b282f94087f631dcc5..38ff9d1a2ff545c80c52ea154fc1a96223d6d0a9 100644 (file)
@@ -1279,7 +1279,7 @@ static void S_PaintAndSubmit (void)
 {
        unsigned int newsoundtime, paintedtime, endtime, maxtime, usedframes;
 
 {
        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
                return;
 
        // Update sound time
@@ -1328,7 +1328,7 @@ void S_Update(const matrix4x4_t *listenermatrix)
        channel_t *ch, *combine;
        matrix4x4_t basematrix, rotatematrix;
 
        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);
                return;
 
        Matrix4x4_Invert_Simple(&basematrix, listenermatrix);