aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/cl_main.c
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-03 02:28:03 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-03 02:28:03 +0000
commit74ccff8bf571b8bfeeea42a4c62ea0528393fa37 (patch)
tree0b03c2ba405d9bb112aab14436c4fe62df9e56c1 /code/client/cl_main.c
parentd645b026032ad0aba72d01b9183cc12ef7705d49 (diff)
downloadioquake3-aero-74ccff8bf571b8bfeeea42a4c62ea0528393fa37.tar.gz
ioquake3-aero-74ccff8bf571b8bfeeea42a4c62ea0528393fa37.zip
Don't allow client to capture audio if playing back a demo.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1360 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/cl_main.c')
-rw-r--r--code/client/cl_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/code/client/cl_main.c b/code/client/cl_main.c
index 34185b9..1017b84 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.