aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/cl_main.c
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-02 19:52:13 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-02 19:52:13 +0000
commitb7d4ef98b10aad87a1a69bdd4081b5b585c9fe9e (patch)
tree424231db4b4fa5a64240e7ca0e91e61a428c46ca /code/client/cl_main.c
parent54a42296270247b1b1bfb1f576fe67106eb86d03 (diff)
downloadioquake3-aero-b7d4ef98b10aad87a1a69bdd4081b5b585c9fe9e.tar.gz
ioquake3-aero-b7d4ef98b10aad87a1a69bdd4081b5b585c9fe9e.zip
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
Diffstat (limited to 'code/client/cl_main.c')
-rw-r--r--code/client/cl_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/code/client/cl_main.c b/code/client/cl_main.c
index 1a265e7..34185b9 100644
--- a/code/client/cl_main.c
+++ b/code/client/cl_main.c
@@ -3037,6 +3037,12 @@ void CL_Init( void ) {
cl_voipGainDuringCapture = Cvar_Get ("cl_voipGainDuringCapture", "0.2", CVAR_ARCHIVE);
voip = Cvar_Get ("voip", "0", CVAR_USERINFO | CVAR_ARCHIVE | CVAR_LATCH);
+ // This is a protocol version number.
+ if ( (voip->integer < 0) || (voip->integer > 1) ) {
+ Com_Printf("WARNING: voip cvar must be 0 or 1. Setting to 1.");
+ Cvar_Set ("voip", "1");
+ }
+
// If your data rate is too low, you'll get Connection Interrupted warnings
// when VoIP packets arrive, even if you have a broadband connection.
// This might work on rates lower than 25000, but for safety's sake, we'll