godarklight / DarkMultiPlayer

DarkMultiPlayer - A multiplayer mod for Kerbal Space Program
MIT License
278 stars 120 forks source link

Fixed inconsistent decimal point be using explicit format info. #475

Closed Deathlymad closed 3 years ago

Deathlymad commented 4 years ago

Fixes a bug when running a server on certain locales where Double.Parse would behave differently to StreamWriter.WriteLine(). After a bit of testing this should do the trick. possibly needs to be addressed in VesselInfo as well at some Point. https://github.com/godarklight/DarkMultiPlayer/blob/3ce17b66ee3ffb69f1ca68ba650734dd292a3c46/Client/VesselWorker.cs#L1935