mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 19:02:19 -05:00
Fix +/- buttons on float sliders not working at certain values (#3865)
This commit is contained in:
parent
ed85a1b0e2
commit
f8b0e586bb
@ -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) << val;
|
ss << std::setprecision(ticks + 1) << 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();
|
||||||
|
Loading…
Reference in New Issue
Block a user