diff options
author | click <none@none> | 2010-05-29 18:42:19 +0200 |
---|---|---|
committer | click <none@none> | 2010-05-29 18:42:19 +0200 |
commit | 1758940ce2bd29bc41617649fcfe48a9e372c288 (patch) | |
tree | 80a3cf67c4543e5ef5ad181bf4cf159ad91b73b3 /src/game/World.cpp | |
parent | ea3760066b62a60d0f570b3a86d141fdc656fed2 (diff) |
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
Diffstat (limited to 'src/game/World.cpp')
-rw-r--r-- | src/game/World.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |