diff options
author | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-07-06 20:07:43 +0000 |
---|---|---|
committer | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-07-06 20:07:43 +0000 |
commit | afbf4dd0c3999e58f59b3d4e3dd4b93d6abe8fd0 (patch) | |
tree | 82bbb464ce6b9601794d31385582f0caefc85a3b /code/server | |
parent | 46d0e6fb071edd9f843b64942f47762d18c09590 (diff) | |
download | ioquake3-aero-afbf4dd0c3999e58f59b3d4e3dd4b93d6abe8fd0.tar.gz ioquake3-aero-afbf4dd0c3999e58f59b3d4e3dd4b93d6abe8fd0.zip |
Reverted svn revision #1410 to sv_init.c
sv_voip is a protocol version number, not a boolean, so this check is
reasonable and correct.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1419 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server')
-rw-r--r-- | code/server/sv_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/code/server/sv_init.c b/code/server/sv_init.c index 28b3a1d..97154f0 100644 --- a/code/server/sv_init.c +++ b/code/server/sv_init.c @@ -656,6 +656,10 @@ void SV_Init (void) { sv_pure = Cvar_Get ("sv_pure", "1", CVAR_SYSTEMINFO ); #if USE_VOIP sv_voip = Cvar_Get ("sv_voip", "1", CVAR_SYSTEMINFO | CVAR_LATCH); + if ( (sv_voip->integer < 0) || (sv_voip->integer > 1) ) { + Com_Printf("WARNING: sv_voip must be 0 or 1. Setting to 1."); + Cvar_Set ("sv_voip", "1"); + } #endif Cvar_Get ("sv_paks", "", CVAR_SYSTEMINFO | CVAR_ROM ); Cvar_Get ("sv_pakNames", "", CVAR_SYSTEMINFO | CVAR_ROM ); |