From aeaa7fd1fcebf3d5de7f1d3cdfb61e23c1c36feb Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 23 Dec 2008 13:29:27 -0600 Subject: *Fix arena distribution timer. --HG-- branch : trunk --- src/game/BattleGroundMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp index 5f8da1bb4b2..4be2320be6a 100644 --- a/src/game/BattleGroundMgr.cpp +++ b/src/game/BattleGroundMgr.cpp @@ -1076,10 +1076,10 @@ void BattleGroundMgr::Update(time_t diff) { if(m_AutoDistributionTimeChecker < diff) { - if(sWorld.GetGameTime() > m_NextAutoDistributionTime) + if(time(NULL)/*sWorld.GetGameTime()*/ > m_NextAutoDistributionTime) { DistributeArenaPoints(); - m_NextAutoDistributionTime = sWorld.GetGameTime() + BATTLEGROUND_ARENA_POINT_DISTRIBUTION_DAY * sWorld.getConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS); + m_NextAutoDistributionTime = time(NULL)/*sWorld.GetGameTime()*/ + BATTLEGROUND_ARENA_POINT_DISTRIBUTION_DAY * sWorld.getConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS); CharacterDatabase.PExecute("UPDATE saved_variables SET NextArenaPointDistributionTime = '"I64FMTD"'", m_NextAutoDistributionTime); } m_AutoDistributionTimeChecker = 600000; // check 10 minutes -- cgit v1.2.3