Really fix parsing double and floats, Also added to BNetServer just to make sure.

This commit is contained in:
hondacrx
2018-01-03 12:37:20 -05:00
parent 28c0ef9d03
commit 8b43b08f6f
2 changed files with 9 additions and 3 deletions
+4 -3
View File
@@ -33,6 +33,10 @@ namespace WorldServer
static void Main()
{
//Set Culture
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Console.CancelKeyPress += (o, e) => Global.WorldMgr.StopNow(ShutdownExitCode.Shutdown);
if (!ConfigMgr.Load(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".conf"))
@@ -73,9 +77,6 @@ namespace WorldServer
Global.WorldMgr.GetRealm().PopulationLevel = 0.0f;
Global.WorldMgr.GetRealm().Flags = Global.WorldMgr.GetRealm().Flags & ~RealmFlags.VersionMismatch;
//Set Culture
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
//- Launch CliRunnable thread
if (ConfigMgr.GetDefaultValue("Console.Enable", true))
{