Interrupt / delverengine

Delver game engine and editor
zlib License
796 stars 77 forks source link

Using English locale for parsing doubles #295

Closed PythooonUser closed 1 year ago

PythooonUser commented 1 year ago

Fixes #285.

The issue was that DecimalFormat uses a locale that is probably dependent on the system.

So in English systems, the value is 0.7, whereas in German the value is 0,7.

When parsing the string as double that contains a comma, we get the exception.

Now, we explicitly set . to be the decimal format symbol.