mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
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:
parent
6c53594ec8
commit
8c30cef65e
1 changed files with 6 additions and 1 deletions
|
@ -613,6 +613,11 @@ 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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue