aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGroundMgr.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-28 15:34:14 +0200
committerSpp <none@none>2010-04-28 15:34:14 +0200
commit650ae59514d81a79cef1c8c60adc6dc3756ebe9a (patch)
treec8220ed923e54c515c38f06e7657c3b525882097 /src/game/BattleGroundMgr.cpp
parentf9650d4a36080ea2a4d4e0daabb4710631c9dc27 (diff)
Fix Arena autodistribution interval time shift
Patch by leak Closses issue 1703 --HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGroundMgr.cpp')
-rw-r--r--src/game/BattleGroundMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp
index 2a104ce7966..82b4a1c619f 100644
--- a/src/game/BattleGroundMgr.cpp
+++ b/src/game/BattleGroundMgr.cpp
@@ -1239,7 +1239,7 @@ void BattleGroundMgr::Update(uint32 diff)
if (time(NULL) > m_NextAutoDistributionTime)
{
DistributeArenaPoints();
- m_NextAutoDistributionTime = time(NULL) + BATTLEGROUND_ARENA_POINT_DISTRIBUTION_DAY * sWorld.getConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS);
+ m_NextAutoDistributionTime = m_NextAutoDistributionTime + BATTLEGROUND_ARENA_POINT_DISTRIBUTION_DAY * sWorld.getConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS);
sWorld.setWorldState(WS_ARENA_DISTRIBUTION_TIME, uint64(m_NextAutoDistributionTime));
}
m_AutoDistributionTimeChecker = 600000; // check 10 minutes