Skip to content

Commit

Permalink
Client shouldn't try to capture audio data if voip cvar is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 1, 2008
1 parent 12326a9 commit a948f7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/client/cl_main.c
Expand Up @@ -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;

Expand Down

0 comments on commit a948f7c

Please sign in to comment.