From a0929920308b68cc8bb9d74f1a222299a267dbb6 Mon Sep 17 00:00:00 2001 From: hunuza Date: Fri, 25 Sep 2009 13:29:07 +0200 Subject: [PATCH] Some BG changes that were introduced in 3.2.2. Player can now only join 2 bg queues at a time. There is a seperate level 80 bracket for AV. Signed-off-by: hunuza --- src/game/Player.cpp | 8 ++------ src/game/SharedDefines.h | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index a3afea53a..ec027d683 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -18591,12 +18591,8 @@ bool Player::GetBGAccessByLevel(BattleGroundTypeId bgTypeId) const BGQueueIdBasedOnLevel Player::GetBattleGroundQueueIdFromLevel(BattleGroundTypeId bgTypeId) const { - //returned to hardcoded version of this function, because there is no way to code it dynamic - uint32 level = getLevel(); - if( bgTypeId == BATTLEGROUND_AV ) - level--; - - uint32 queue_id = (level / 10) - 1; // for ranges 0 - 19, 20 - 29, 30 - 39, 40 - 49, 50 - 59, 60 - 69, 70 -79, 80 + // for ranges 0 - 19, 20 - 29, 30 - 39, 40 - 49, 50 - 59, 60 - 69, 70 - 79, 80 + uint32 queue_id = ( getLevel() / 10) - 1; if( queue_id >= MAX_BATTLEGROUND_QUEUES ) { sLog.outError("BattleGround: too high queue_id %u this shouldn't happen", queue_id); diff --git a/src/game/SharedDefines.h b/src/game/SharedDefines.h index 9a6901a19..58ab7c0d0 100644 --- a/src/game/SharedDefines.h +++ b/src/game/SharedDefines.h @@ -93,7 +93,7 @@ enum Classes #define CLASSMASK_WAND_USERS ((1<<(CLASS_PRIEST-1))|(1<<(CLASS_MAGE-1))|(1<<(CLASS_WARLOCK-1))) -#define PLAYER_MAX_BATTLEGROUND_QUEUES 3 +#define PLAYER_MAX_BATTLEGROUND_QUEUES 2 enum ReputationRank {