From b7d4ef98b10aad87a1a69bdd4081b5b585c9fe9e Mon Sep 17 00:00:00 2001 From: icculus Date: Mon, 2 Jun 2008 19:52:13 +0000 Subject: More VoIP work: treat voip/sv_voip cvars as protocol version numbers. git-svn-id: svn://svn.icculus.org/quake3/trunk@1358 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/server/sv_client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'code/server') diff --git a/code/server/sv_client.c b/code/server/sv_client.c index 6f932d1..2528e64 100644 --- a/code/server/sv_client.c +++ b/code/server/sv_client.c @@ -1371,8 +1371,10 @@ void SV_UserinfoChanged( client_t *cl ) { } #if USE_VOIP + // in the future, (val) will be a protocol version string, so only + // accept explicitly 1, not generally non-zero. val = Info_ValueForKey (cl->userinfo, "voip"); - cl->hasVoip = (strlen(val) && atoi(val)) ? qtrue : qfalse; + cl->hasVoip = (atoi(val) == 1) ? qtrue : qfalse; #endif // TTimo -- cgit v1.2.3