mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-15 22:01:01 +00:00
[ruamoko] Use cvar toggle function
This fixes menu toggle items not working (eg fullscreen).
This commit is contained in:
parent
ba0cf5fa9b
commit
ee986e3b2a
1 changed files with 2 additions and 2 deletions
|
@ -243,8 +243,8 @@ bi_Cvar_Toggle (progs_t *pr, void *_res)
|
|||
var = Cvar_FindVar (varname);
|
||||
if (!var)
|
||||
var = Cvar_FindAlias (varname);
|
||||
if (var && var->value.type == &cexpr_int) {
|
||||
*(int *) var->value.value = !*(int *) var->value.value;
|
||||
if (var) {
|
||||
Cvar_Toggle (var);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue