aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-23 13:29:27 -0600
committermegamage <none@none>2008-12-23 13:29:27 -0600
commitaeaa7fd1fcebf3d5de7f1d3cdfb61e23c1c36feb (patch)
tree09e33d439cbbf2ba47251360f483a66fd69b310a
parent2dd0b28fb2ea22a0c789abfdfe1932412ca44d69 (diff)
*Fix arena distribution timer.
--HG-- branch : trunk
-rw-r--r--src/game/BattleGroundMgr.cpp4
1 files changed, 2 insertions, 2 deletions
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