mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
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:
parent
382fe8feff
commit
e537c27a70
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue