Fixed Edit Archetype BSRadius regional number formatting issue

This commit is contained in:
dexy 2023-08-21 15:10:52 +10:00
parent 3bfd6ac9f8
commit 5760d56134

View File

@ -338,7 +338,7 @@ namespace CodeWalker.Project.Panels
private void BSRadiusTextBox_TextChanged(object sender, EventArgs e) private void BSRadiusTextBox_TextChanged(object sender, EventArgs e)
{ {
if (float.TryParse(BSRadiusTextBox.Text, out float f)) if (FloatUtil.TryParse(BSRadiusTextBox.Text, out float f))
{ {
if (!MathUtil.NearEqual(CurrentArchetype._BaseArchetypeDef.bsRadius, f)) if (!MathUtil.NearEqual(CurrentArchetype._BaseArchetypeDef.bsRadius, f))
{ {