1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2004-09-04 17:39:47 +00:00
parent 30b8181429
commit 9ed9b70d9d

View file

@ -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;
}
}
}