Metapyziks / SourceUtils

Source engine file format exporting / WebGL map viewer demo.
MIT License
142 stars 21 forks source link

Fixed float to string conversion not being culture invariant #66

Closed Donkie closed 5 years ago

Donkie commented 5 years ago

In swedish and some other languages, comma is used as decimal point so when converting the floats to string they would become "10,123" for example, which would get mixed into the regular value separating commas and break the json files.

Metapyziks commented 5 years ago

Good catch, I've managed to handle this in a few other places but completely missed this one!