[VMF Options View] Fix clamping decimal numbers
Numeric widget no longer removes 0 at the end of decimal part.
This commit is contained in:
parent
79506289e3
commit
1f950de22e
1 changed files with 2 additions and 1 deletions
|
@ -3594,7 +3594,8 @@ VMFOptionsView.callback_draw_numeric_menu = function (self, widget_content)
|
|||
|
||||
-- Lua, pls! Sometimes "tostring" returns something like "1337.5999999999999" instead of "1337.6",
|
||||
-- so I have to convert number to string this way
|
||||
new_value = new_value_number .. ""
|
||||
-- UPD(bi) 01.01.19 I commented out following string. Rething this whole block later. Seems like it can be just removed.
|
||||
-- new_value = new_value_number .. ""
|
||||
end
|
||||
else
|
||||
-- if entered string is not convertable, change its color to red
|
||||
|
|
Loading…
Add table
Reference in a new issue