summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2013-06-04 23:02:23 -0500
committerTim Angus <tim@ngus.net>2014-06-17 17:43:32 +0100
commit92844d4646be3fa958e5d9e1ce2ff4b282018b20 (patch)
tree5720b4fc9a66d9744f6c662ee74478c4fdc9e579
parent762008f504791e19684c1fb8a09cc100a0b31978 (diff)
Allow adjusting VoIP gain and mute during demo playback
-rw-r--r--src/client/cl_parse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/cl_parse.c b/src/client/cl_parse.c
index e09e7f02..077a6218 100644
--- a/src/client/cl_parse.c
+++ b/src/client/cl_parse.c
@@ -353,16 +353,16 @@ void CL_SystemInfoChanged( void ) {
// in some cases, outdated cp commands might get sent with this news serverId
cl.serverId = atoi( Info_ValueForKey( systemInfo, "sv_serverid" ) );
- // don't set any vars when playing a demo
- if ( clc.demoplaying ) {
- return;
- }
-
#ifdef USE_VOIP
s = Info_ValueForKey( systemInfo, "sv_voip" );
clc.voipEnabled = atoi(s);
#endif
+ // don't set any vars when playing a demo
+ if ( clc.demoplaying ) {
+ return;
+ }
+
s = Info_ValueForKey( systemInfo, "sv_cheats" );
cl_connectedToCheatServer = atoi( s );
if ( !cl_connectedToCheatServer ) {