From 9ed9b70d9d8f5d6d8b5aaf6b1403283ceb0314ab Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 4 Sep 2004 17:39:47 +0000 Subject: [PATCH] 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 --- engine/common/cvar.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/common/cvar.c b/engine/common/cvar.c index efa3f2214..55f3489cd 100644 --- a/engine/common/cvar.c +++ b/engine/common/cvar.c @@ -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; } } }