aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/cl_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/client/cl_parse.c')
-rw-r--r--code/client/cl_parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/code/client/cl_parse.c b/code/client/cl_parse.c
index 167b035..d80d7d2 100644
--- a/code/client/cl_parse.c
+++ b/code/client/cl_parse.c
@@ -365,8 +365,10 @@ void CL_SystemInfoChanged( void ) {
}
#if USE_VOIP
+ // in the future, (val) will be a protocol version string, so only
+ // accept explicitly 1, not generally non-zero.
s = Info_ValueForKey( systemInfo, "sv_voip" );
- cl_connectedToVoipServer = atoi( s );
+ cl_connectedToVoipServer = (atoi( s ) == 1);
#endif
s = Info_ValueForKey( systemInfo, "sv_cheats" );