UDMF map element editing forms: fixed a problem where some fields were rounded to two decimal places (they are not rounded anymore). Fixes #1004

This commit is contained in:
biwa 2024-01-11 16:07:02 +01:00
parent f63be092dc
commit f7deef9ca3

View file

@ -69,8 +69,8 @@ namespace CodeImp.DoomBuilder.Controls
if(AllowDecimal) if(AllowDecimal)
{ {
newValue1 = Math.Round(UniFields.GetFloat(fields, field1, defaultValue), 2).ToString(); newValue1 = UniFields.GetFloat(fields, field1, defaultValue).ToString();
newValue2 = Math.Round(UniFields.GetFloat(fields, field2, defaultValue), 2).ToString(); newValue2 = UniFields.GetFloat(fields, field2, defaultValue).ToString();
} }
else else
{ {