Really fix parsing double and floats, Also added to BNetServer just to make sure.
This commit is contained in:
@@ -20,6 +20,7 @@ using Framework.Configuration;
|
|||||||
using Framework.Database;
|
using Framework.Database;
|
||||||
using Framework.Networking;
|
using Framework.Networking;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Globalization;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
|
|
||||||
namespace BNetServer
|
namespace BNetServer
|
||||||
@@ -28,6 +29,10 @@ namespace BNetServer
|
|||||||
{
|
{
|
||||||
static void Main()
|
static void Main()
|
||||||
{
|
{
|
||||||
|
//Set Culture
|
||||||
|
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
|
||||||
|
System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
||||||
|
|
||||||
Console.CancelKeyPress += (o, e) =>
|
Console.CancelKeyPress += (o, e) =>
|
||||||
{
|
{
|
||||||
Global.RealmMgr.Close();
|
Global.RealmMgr.Close();
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ namespace WorldServer
|
|||||||
|
|
||||||
static void Main()
|
static void Main()
|
||||||
{
|
{
|
||||||
|
//Set Culture
|
||||||
|
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
|
||||||
|
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
||||||
|
|
||||||
Console.CancelKeyPress += (o, e) => Global.WorldMgr.StopNow(ShutdownExitCode.Shutdown);
|
Console.CancelKeyPress += (o, e) => Global.WorldMgr.StopNow(ShutdownExitCode.Shutdown);
|
||||||
|
|
||||||
if (!ConfigMgr.Load(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".conf"))
|
if (!ConfigMgr.Load(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".conf"))
|
||||||
@@ -73,9 +77,6 @@ namespace WorldServer
|
|||||||
Global.WorldMgr.GetRealm().PopulationLevel = 0.0f;
|
Global.WorldMgr.GetRealm().PopulationLevel = 0.0f;
|
||||||
Global.WorldMgr.GetRealm().Flags = Global.WorldMgr.GetRealm().Flags & ~RealmFlags.VersionMismatch;
|
Global.WorldMgr.GetRealm().Flags = Global.WorldMgr.GetRealm().Flags & ~RealmFlags.VersionMismatch;
|
||||||
|
|
||||||
//Set Culture
|
|
||||||
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
|
|
||||||
|
|
||||||
//- Launch CliRunnable thread
|
//- Launch CliRunnable thread
|
||||||
if (ConfigMgr.GetDefaultValue("Console.Enable", true))
|
if (ConfigMgr.GetDefaultValue("Console.Enable", true))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user