* (bug #4369) Cvar modified flags are not updated in Cvar_Get (Lakitu7)

This commit is contained in:
Tim Angus 2009-12-18 21:57:56 +00:00
parent af4e46bfe2
commit fa2a698aa3

View file

@ -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 var->latchedString = NULL; // otherwise cvar_set2 would free it
Cvar_Set2( var_name, s, qtrue ); Cvar_Set2( var_name, s, qtrue );
Z_Free( s ); 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; return var;
} }