0
0
Fork 0
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:
Bill Currie 2023-12-21 10:25:44 +09:00
parent ee986e3b2a
commit cc4fd5920f

View file

@ -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