diff options
author | thenecromancer <none@none> | 2010-01-14 11:22:52 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-01-14 11:22:52 +0100 |
commit | 97576c68c4d70f6ce803fb6db436c3b9ca616d1a (patch) | |
tree | 977b6085216c708c4365c79bb023fa83a4a8ff63 /src/game/BattleGround.cpp | |
parent | 1608a05ddbdd226226718bcb432ef0b222f7ca64 (diff) |
Issue 322: build BG status packet and send it to player added to BG.
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r-- | src/game/BattleGround.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 1828a04fa8a..26717cc9fdb 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -1170,6 +1170,13 @@ void BattleGround::AddPlayer(Player *plr) sBattleGroundMgr.BuildPlayerJoinedBattleGroundPacket(&data, plr); SendPacketToTeam(team, &data, plr, false); + // BG Status packet + WorldPacket status; + BattleGroundQueueTypeId bgQueueTypeId = BattleGroundMgr::BGQueueTypeId(m_TypeID, GetArenaType()); + uint32 queueSlot = plr->GetBattleGroundQueueIndex(bgQueueTypeId); + sBattleGroundMgr.BuildBattleGroundStatusPacket(&status, this, queueSlot, STATUS_IN_PROGRESS, 0, GetStartTime(), GetArenaType()); + plr->GetSession()->SendPacket(&status); + // add arena specific auras if (isArena()) { |