From a948f7cf692a41f7c86ccaa9008122206b86f0d8 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 1 Jun 2008 17:43:58 +0000 Subject: [PATCH] Client shouldn't try to capture audio data if voip cvar is disabled. --- code/client/cl_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 22c89c61..2b878577 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -259,6 +259,8 @@ void CL_CaptureVoip(void) dontCapture = qtrue; // server doesn't support VoIP. else if ( Cvar_VariableValue( "g_gametype" ) == GT_SINGLE_PLAYER || Cvar_VariableValue("ui_singlePlayerActive")) dontCapture = qtrue; // single player game. + else if ( voip->integer == 0 ) + dontCapture = qtrue; // client has VoIP support disabled. cl_voipSend->modified = qfalse;