From e0ebde0b27e7fd6d38586357594174af5eea53c1 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 3 Jun 2008 02:28:03 +0000 Subject: [PATCH] Don't allow client to capture audio if playing back a demo. --- 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 34185b98..1017b84a 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 (clc.demoplaying) + dontCapture = qtrue; // playing back a demo. else if ( voip->integer == 0 ) dontCapture = qtrue; // client has VoIP support disabled.