More VoIP work: treat voip/sv_voip cvars as protocol version numbers.
This commit is contained in:
parent
1e4fa5a54c
commit
0403ca2260
3 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue