Jump to content

[Mangos-0.12] Fix Arena System


Guest mns

Recommended Posts

hi

diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp
index 5db8e52..a4c750c 100644
--- a/src/game/BattleGroundMgr.cpp
+++ b/src/game/BattleGroundMgr.cpp
@@ -1139,7 +1139,7 @@ void BattleGroundMgr::Update(uint32 diff)
        }
    }
    // if rating difference counts, maybe force-update queues
-    if(sWorld.getConfig(CONFIG_UINT32_ARENA_MAX_RATING_DIFFERENCE))
+    if(sWorld.getConfig(CONFIG_UINT32_ARENA_MAX_RATING_DIFFERENCE) && sWorld.getConfig(CONFIG_UINT32_ARENA_RATING_DISCARD_TIMER))
    {
        // it's time to force update
        if(m_NextRatingDiscardUpdate < diff)

Without this patch players enter to arena without checking rating if Arena.MaxRatingDifference > 0 and Arena.RatingDiscardTimer > 0 .

and this cause prevent spam update queue when players join in arena . Increase performance :)

have fun corrected arena .

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use