mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
Round off OptionFloatItem
This commit is contained in:
1 parent
6f229d4ea2
commit
aa8ed57e21
1 file changed
+1
@@ -154,6 +154,7 @@ public class OptionFloatItem : OptionItem<float>
|
||||
public override void SetValue(float newValue)
|
||||
{
|
||||
newValue = Math.Clamp(newValue, Range.min, Range.max);
|
||||
newValue = (float)Math.Round(newValue, 1);
|
||||
base.SetValue(newValue);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user