[cvar] Clean up most misinterpreted cvar types

The misinterpretations were due to either the cvar not being accessed
directly by the engine, but via only the callback, or the cvars were
accesssed only by progs (in which case, they should be float). The
remainder are a potential enum (hud gravity) and a "too hard basket"
(rcon password: need to figure out how I want to handle secret strings).
This commit is contained in:
Bill Currie 2022-04-24 20:04:06 +09:00
parent 90447a5d3b
commit bff0847761
24 changed files with 121 additions and 127 deletions

View file

@ -133,7 +133,7 @@ static cvar_t pr_source_path_cvar = {
"where to look (within gamedir) for source files",
.default_value = ".",
.flags = CVAR_NONE,
.value = { .type = 0/* not used */, .value = &pr_source_path },
.value = { .type = 0, .value = &pr_source_path },
};
static char *source_path_string;
static char **source_paths;