From fa2a698aa3cae5940a32d141c66a083fe51c87c7 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 18 Dec 2009 21:57:56 +0000 Subject: [PATCH] * (bug #4369) Cvar modified flags are not updated in Cvar_Get (Lakitu7) --- code/qcommon/cvar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/qcommon/cvar.c b/code/qcommon/cvar.c index 5d52803f..8bd1b271 100644 --- a/code/qcommon/cvar.c +++ b/code/qcommon/cvar.c @@ -382,12 +382,12 @@ cvar_t *Cvar_Get( const char *var_name, const char *var_value, int flags ) { var->latchedString = NULL; // otherwise cvar_set2 would free it Cvar_Set2( var_name, s, qtrue ); Z_Free( s ); - - // ZOID--needs to be set so that cvars the game sets as - // SERVERINFO get sent to clients - cvar_modifiedFlags |= flags; } + // ZOID--needs to be set so that cvars the game sets as + // SERVERINFO get sent to clients + cvar_modifiedFlags |= flags; + return var; }