Core/BG: Fix a logic mistake in ResetStat timer

It should only be executed every 5 seconds, not in every update
This commit is contained in:
Nay
2012-04-15 01:30:50 +02:00
parent 8c3d0e2368
commit 8a33ddc010

View File

@@ -426,7 +426,7 @@ inline void Battleground::_ProcessJoin(uint32 diff)
// *********************************************************
ModifyStartDelayTime(diff);
if (m_ResetStatTimer <= 5000)
if (m_ResetStatTimer > 5000)
{
m_ResetStatTimer = 0;
for (BattlegroundPlayerMap::const_iterator itr = GetPlayers().begin(); itr != GetPlayers().end(); ++itr)