mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-11 20:03:11 +00:00
[ruamoko] Return float cvar values correctly
They don't work too well when going through int.
This commit is contained in:
parent
ee986e3b2a
commit
cc4fd5920f
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ bi_Cvar_GetFloat (progs_t *pr, void *_res)
|
|||
var = Cvar_FindAlias (varname);
|
||||
if (!var || var->value.type != &cexpr_float)
|
||||
return;
|
||||
R_INT (pr) = *(float *) var->value.value;
|
||||
R_FLOAT (pr) = *(float *) var->value.value;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue