From c2b35fee412f36fd71da42eb490a6e72426ba8eb Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sun, 6 Feb 2022 10:32:55 -0500 Subject: [PATCH] - allow floats for uniform cvar defaults --- source/core/r_data/gldefs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/r_data/gldefs.cpp b/source/core/r_data/gldefs.cpp index c8b4534e8..149aacfa3 100644 --- a/source/core/r_data/gldefs.cpp +++ b/source/core/r_data/gldefs.cpp @@ -1562,9 +1562,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)))