From e0618ab3cd9632804ab658ddd110ca5269f070d4 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 10 Jan 2021 19:42:48 -0500 Subject: [PATCH] Fix build. --- Source/Game/Server/WorldConfig.cs | 2 +- Source/Game/Server/WorldManager.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Server/WorldConfig.cs b/Source/Game/Server/WorldConfig.cs index 59bd89ec1..a964642ac 100644 --- a/Source/Game/Server/WorldConfig.cs +++ b/Source/Game/Server/WorldConfig.cs @@ -563,7 +563,7 @@ namespace Game Values[WorldCfg.MailDeliveryDelay] = GetDefaultValue("MailDeliveryDelay", Time.Hour); Values[WorldCfg.CleanOldMailTime] = GetDefaultValue("CleanOldMailTime", 4); - if (Values[WorldCfg.CleanOldMailTime] > 23) + if ((int)Values[WorldCfg.CleanOldMailTime] > 23) { Log.outError(LogFilter.ServerLoading, $"CleanOldMailTime ({Values[WorldCfg.CleanOldMailTime]}) must be an hour, between 0 and 23. Set to 4."); Values[WorldCfg.CleanOldMailTime] = 4; diff --git a/Source/Game/Server/WorldManager.cs b/Source/Game/Server/WorldManager.cs index 6558791a2..165d1c61e 100644 --- a/Source/Game/Server/WorldManager.cs +++ b/Source/Game/Server/WorldManager.cs @@ -963,7 +963,7 @@ namespace Game //one second is 1000 -(tested on win system) // @todo Get rid of magic numbers var localTime = Time.UnixTimeToDateTime(GameTime.GetGameTime()).ToLocalTime(); - byte CleanOldMailsTime = WorldConfig.GetIntValue(WorldCfg.CleanOldMailTime); + int CleanOldMailsTime = WorldConfig.GetIntValue(WorldCfg.CleanOldMailTime); mail_timer = ((((localTime.Hour + (24 - CleanOldMailsTime)) % 24) * Time.Hour * Time.InMilliseconds) / m_timers[WorldTimers.Auctions].GetInterval()); //1440 mail_timer_expires = ((Time.Day * Time.InMilliseconds) / (m_timers[(int)WorldTimers.Auctions].GetInterval()));