* Rename voip cvar to cl_voip
* s/#if USE_VOIP/#ifdef USE_VOIP/ * Add generalised runtime cvar range checking, currently on [sv|cl]_voip, dedicated and a bunch of r_ variables
This commit is contained in:
parent
809c361744
commit
37d664d4b2
24 changed files with 239 additions and 110 deletions
|
@ -654,12 +654,9 @@ void SV_Init (void) {
|
|||
Cvar_Get ("sv_cheats", "1", CVAR_SYSTEMINFO | CVAR_ROM );
|
||||
sv_serverid = Cvar_Get ("sv_serverid", "0", CVAR_SYSTEMINFO | CVAR_ROM );
|
||||
sv_pure = Cvar_Get ("sv_pure", "1", CVAR_SYSTEMINFO );
|
||||
#if USE_VOIP
|
||||
#ifdef 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");
|
||||
}
|
||||
Cvar_CheckRange( sv_voip, 0, 1, qtrue );
|
||||
#endif
|
||||
Cvar_Get ("sv_paks", "", CVAR_SYSTEMINFO | CVAR_ROM );
|
||||
Cvar_Get ("sv_pakNames", "", CVAR_SYSTEMINFO | CVAR_ROM );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue