From 1758940ce2bd29bc41617649fcfe48a9e372c288 Mon Sep 17 00:00:00 2001 From: click Date: Sat, 29 May 2010 18:42:19 +0200 Subject: Fix: use stored randombg resettime for calculating when to do the next daily reset of random battlegrounds Thanks to HP for pointing this out. --HG-- branch : trunk --- src/game/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/World.cpp b/src/game/World.cpp index 9b2c61b6b7d..e3943b7dd05 100644 --- a/src/game/World.cpp +++ b/src/game/World.cpp @@ -2582,7 +2582,7 @@ void World::InitRandomBGResetTime() nextDayResetTime += DAY; // normalize reset time - m_NextRandomBGReset = m_NextRandomBGReset < curTime ? nextDayResetTime - DAY : nextDayResetTime; + m_NextRandomBGReset = bgtime < curTime ? nextDayResetTime - DAY : nextDayResetTime; if (!bgtime) sWorld.setWorldState(WS_BG_DAILY_RESET_TIME, uint64(m_NextRandomBGReset)); -- cgit v1.2.3