UDBScript: fixed a problem where floating point default script option values would be converted to the system's locale on hot reloading. Fixes #858

This commit is contained in:
biwa 2023-03-03 13:10:32 +01:00
parent 6c53594ec8
commit 8c30cef65e

View file

@ -612,7 +612,12 @@ namespace CodeImp.DoomBuilder
//mxd. Set CultureInfo
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
// biwa. If the default culture for threads is not set it'll screw with the culture
// in the FileSystemWatcher thread, which can result in incorrect string outputs
// See: https://github.com/jewalky/UltimateDoomBuilder/issues/858
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
// Set current thread name
Thread.CurrentThread.Name = "Main Application";