Treat sv_voip cvar as a version number (0 == off, 1 == version 1 protocol).

Don't publish it to server's info string if set to zero.
This commit is contained in:
Ryan C. Gordon 2008-06-02 19:41:09 +00:00
parent 953e9ec287
commit 1e4fa5a54c
2 changed files with 7 additions and 1 deletions

View file

@ -412,7 +412,9 @@ void SVC_Info( netadr_t from ) {
Info_SetValueForKey( infostring, "pure", va("%i", sv_pure->integer ) );
#if USE_VOIP
Info_SetValueForKey( infostring, "voip", va("%i", sv_voip->integer ) );
if (sv_voip->integer) {
Info_SetValueForKey( infostring, "voip", va("%i", sv_voip->integer ) );
}
#endif
if( sv_minPing->integer ) {