- allow floats for uniform cvar defaults

This commit is contained in:
Rachael Alexanderson 2022-02-06 10:33:35 -05:00
parent 751f859c7a
commit eae2704a9b

View file

@ -1557,9 +1557,9 @@ class GLDefsParser
}
UCVarValue val;
sc.MustGetNumber();
sc.MustGetFloat();
val.Float = sc.Number;
val.Float = sc.Float;
// must've picked this up from an autoexec.cfg, handle accordingly
if (cvar && ((cvar->GetFlags() & (CVAR_MOD|CVAR_AUTO|CVAR_UNSETTABLE)) == (CVAR_AUTO | CVAR_UNSETTABLE)))