Fix neck slider (#3902)

This commit is contained in:
Josh Bodner 2024-02-15 17:38:28 -08:00 committed by GitHub
commit a7b8c1dbca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -449,7 +449,7 @@ namespace UIWidgets {
if (changed && !(abs(oldVal - val) < 0.000001f)) { if (changed && !(abs(oldVal - val) < 0.000001f)) {
std::stringstream ss; std::stringstream ss;
ss << std::setprecision(ticks + 1) << val; ss << std::setprecision(ticks + 1) << std::setiosflags(std::ios_base::fixed) << val;
val = std::stof(ss.str()); val = std::stof(ss.str());
CVarSetFloat(cvarName, val); CVarSetFloat(cvarName, val);
LUS::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesOnNextTick(); LUS::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesOnNextTick();