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 committed 2008-06-02 19:41:09 +00:00
1 parent 953e9ec287
commit 1e4fa5a54c
2 files changed
+7 -1

No files matched your search

+3 -1
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 ) {