From d696381f325278d2243ec5072e872ebfd38f8568 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 9 Feb 2009 22:08:06 -0600 Subject: [7250] Use bg type ids enum insted raw values and catch some bugs in result for fixing. * Replace max bg type checks by DBC valid index check * Use in functions and fields BattlegroundTypeId type instead uint32 * Fixed wrong use bg queue ids instead bg type ids in queue update/remove function calls. Many bg have same raw values for type id and queue id but some can be affected by this bug: BATTLEGROUND_EY, BATTLEGROUND_SA, and all areans (with small arena/team size exceptions) * Move Battlemaster to bg type ids map fron ObjectMgr to BatteleGroundMgr. * Remobe redundent for header itself includes for BG headers. * Use Auction location enum instead raw valus. Author: VladimirMangos --HG-- branch : trunk --- src/game/BattleGroundAV.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/BattleGroundAV.cpp') diff --git a/src/game/BattleGroundAV.cpp b/src/game/BattleGroundAV.cpp index b9589bdbb84..d8e0fce535e 100644 --- a/src/game/BattleGroundAV.cpp +++ b/src/game/BattleGroundAV.cpp @@ -30,6 +30,7 @@ #include "Language.h" #include "SpellAuras.h" #include "Formulas.h" +#include "WorldPacket.h" BattleGroundAV::BattleGroundAV() { -- cgit v1.2.3