From 1ab1f425ce31cb37b3a8a604c937fb9d2bb0fde1 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 5 Mar 2021 19:15:57 -0500 Subject: [PATCH] Fixed errors with newest visual studio. --- Source/Game/Entities/Player/Player.Fields.cs | 2 +- Source/Game/Server/WorldManager.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Game/Entities/Player/Player.Fields.cs b/Source/Game/Entities/Player/Player.Fields.cs index 478fb3b33..565f21e64 100644 --- a/Source/Game/Entities/Player/Player.Fields.cs +++ b/Source/Game/Entities/Player/Player.Fields.cs @@ -310,7 +310,7 @@ namespace Game.Entities public class PlayerLevelInfo { - public ushort[] stats = new ushort[(int)Stats.Max]; + public int[] stats = new int[(int)Stats.Max]; } public class PlayerCurrency diff --git a/Source/Game/Server/WorldManager.cs b/Source/Game/Server/WorldManager.cs index 70c634955..30a548922 100644 --- a/Source/Game/Server/WorldManager.cs +++ b/Source/Game/Server/WorldManager.cs @@ -1086,6 +1086,9 @@ namespace Game Log.outInfo(LogFilter.ServerLoading, "Using {0} DBC Locale", m_defaultDbcLocale); + // load update time related configs + _worldUpdateTime.LoadFromConfig(); + Global.WorldMgr.SetPlayerAmountLimit((uint)ConfigMgr.GetDefaultValue("PlayerLimit", 100)); Global.WorldMgr.SetMotd(ConfigMgr.GetDefaultValue("Motd", "Welcome to a Cypher Core Server."));