fix a long standing (but only recently discovered) but with INFO cvars (USER

and SERVER) where they weren't being put into the info string if they were
never modified from the default.
This commit is contained in:
Bill Currie 2000-12-24 23:39:43 +00:00
parent 382fe8feff
commit e537c27a70

View file

@ -482,12 +482,13 @@ Cvar_Get (char *name, char *string, int cvarflags, char *description)
v->description = description;
v->value = atof (v->string);
v->int_val = atoi (v->string);
return v;
} else {
// Cvar does exist, so we update the flags and return.
v->flags &= ~CVAR_USER_CREATED;
v->flags |= cvarflags;
v->description = description;
}
// Cvar does exist, so we update the flags and return.
v->flags &= ~CVAR_USER_CREATED;
v->flags |= cvarflags;
v->description = description;
Cvar_Info (v);
return v;
}