Jump to content

mangos-0.12 - GetMaxLevelForBattleGroundQueueId returns wrong level


Guest balrok

Recommended Posts

what bug does this patch fix: for lvl70 bg-queues (queue_id=6) this function returns always 255

bugreports: none

author: balrok

this bug doesn't affect the game itself - cause the function isn't used in mangos-0.12

but for other custom-patch writer it's better that this gets repaired

in mangos/master this function totaly changed - so its a mangos-0.12 bug only

diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 90b5d11..7fa0f8a 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -17930,7 +17930,7 @@ uint32 Player::GetMinLevelForBattleGroundQueueId(uint32 queue_id)

uint32 Player::GetMaxLevelForBattleGroundQueueId(uint32 queue_id)
{
-    if(queue_id >=6)
+    if(queue_id >=7)
        return 255;                                         // hardcoded max level

    return 10*(queue_id+2)-1;

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