Unvanquished icon indicating copy to clipboard operation
Unvanquished copied to clipboard

Trailing zeroes in float cvar breaks text comparison in RmlUi

Open illwieckz opened this issue 3 years ago • 1 comments

As you can see flot cvars like the cg_motionblur one can be converted to text with trailing zeroes, meaning it doesn't match the default value and the drop down menu doesn't indicate the currently used option:

trailing zeroes in float cvar

trailing zeroes in float cvar

illwieckz avatar Aug 02 '22 23:08 illwieckz

0.05 is special as it doesn't have an exact value in float. But the issue is different here, it's just extra 0 even in the 0.0 case

necessarily-equal avatar Aug 03 '22 10:08 necessarily-equal