nebriv / VTOLVR-TacviewLogger

A VTOL VR Mod to export data readable by Tacview
https://vtolvr-mods.com
22 stars 9 forks source link

Fix issue where culture saves floats with commas #14

Closed thehamsterjam closed 3 years ago

nebriv commented 3 years ago

Hey @thehamsterjam - forgive me... not really sure what this does, can you elaborate a bit on the change?

Also - massive apologies, I completely forgot about this PR!

thehamsterjam commented 3 years ago

In locales which use commas to indicate floating point numbers (1,01 instead of 1.01) such as where I live, the generated Tacview file is saved with the commas instead of with points. This breaks the Tacview file. So this change sets the culture to Invariant, which always uses points for floating point numbers.

nebriv commented 3 years ago

Thats what I assumed. Thanks for the PR! I'll get it merged into the next release.