server latches wern't being cleared on disconnect.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@115 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
30b8181429
commit
9ed9b70d9d
1 changed files with 6 additions and 1 deletions
|
@ -324,6 +324,11 @@ void Cvar_ApplyLatches(int latchflag)
|
|||
{
|
||||
cvar_group_t *grp;
|
||||
cvar_t *var;
|
||||
int mask = ~0;
|
||||
|
||||
if (latchflag == CVAR_SERVEROVERRIDE)
|
||||
mask = ~CVAR_SERVEROVERRIDE;
|
||||
|
||||
for (grp=cvar_groups ; grp ; grp=grp->next)
|
||||
for (var=grp->cvars ; var ; var=var->next)
|
||||
{
|
||||
|
@ -331,9 +336,9 @@ void Cvar_ApplyLatches(int latchflag)
|
|||
{
|
||||
if (var->latched_string)
|
||||
{
|
||||
var->flags &= ~CVAR_NOSET;
|
||||
Cvar_ForceSet(var, var->latched_string);
|
||||
}
|
||||
var->flags &= mask;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue