diff options
author | Machiavelli <none@none> | 2009-04-14 21:49:56 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-04-14 21:49:56 +0200 |
commit | 90c24efab4443d825dd04380b85c74c73d8848fd (patch) | |
tree | c5b52a38f63dfa314831cd120049d5385723ea92 /src | |
parent | 348339770e7e04f4a1a3bef7ba45fef83821c7a4 (diff) |
* Fix issue with battleground queuing where core would first invite people who joined queue the latest
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/BattleGroundMgr.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp index aecb706f73d..6bd0f65dbf2 100644 --- a/src/game/BattleGroundMgr.cpp +++ b/src/game/BattleGroundMgr.cpp @@ -95,9 +95,8 @@ void BattleGroundQueue::EligibleGroups::Init(BattleGroundQueue::QueuedGroupsList && (*itr)->ArenaTeamRating <= MaxRating ) ) ) { // the group matches the conditions - // the source is ordered by join time in decreasing order - // so here we push_front for increasing order - push_front((*itr)); + // using push_back for proper selecting when inviting + push_back((*itr)); } } } @@ -654,14 +653,14 @@ void BattleGroundQueue::Update(uint32 bgTypeId, uint32 queue_id, uint8 arenatype std::list<GroupQueueInfo* >::iterator itr; //Send corrent ammount of invites to both faction at start of BG, not all in current queue, makes starting teams even - unsigned int QUEUED_HORDE = m_SelectionPools[NORMAL_HORDE].SelectedGroups.size(); - unsigned int QUEUED_ALLIANCE= m_SelectionPools[NORMAL_ALLIANCE].SelectedGroups.size(); - unsigned int maxbginvites = 0; - - if(QUEUED_ALLIANCE <= QUEUED_HORDE) - maxbginvites = QUEUED_ALLIANCE; - else - maxbginvites = QUEUED_HORDE; + unsigned int QUEUED_HORDE = m_SelectionPools[NORMAL_HORDE].SelectedGroups.size(); + unsigned int QUEUED_ALLIANCE= m_SelectionPools[NORMAL_ALLIANCE].SelectedGroups.size(); + unsigned int maxbginvites = 0; + + if(QUEUED_ALLIANCE <= QUEUED_HORDE) + maxbginvites = QUEUED_ALLIANCE; + else + maxbginvites = QUEUED_HORDE; // invite groups from horde selection pool int invitecounter = 0; |