More VoIP work: treat voip/sv_voip cvars as protocol version numbers.
This commit is contained in:
1 parent
1e4fa5a54c
commit
0403ca2260
3 files changed
+12
-2
No files matched your search
@@ -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" );
|
||||
|
||||
Reference in new issue
Block a user