Fix build.

This commit is contained in:
hondacrx
2021-01-10 19:42:48 -05:00
parent 1413267c79
commit e0618ab3cd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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()));