Added enum for SMSG_GROUP_JOINED_BATTLEGROUND opcode and some other fixes. Big thx to TOM_RUS.
--HG-- branch : trunk
This commit is contained in:
@@ -1411,19 +1411,12 @@ void BattleGroundMgr::BuildPvpLogDataPacket(WorldPacket *data, BattleGround *bg)
|
||||
}
|
||||
}
|
||||
|
||||
void BattleGroundMgr::BuildGroupJoinedBattlegroundPacket(WorldPacket *data, BattleGroundTypeId bgTypeId)
|
||||
void BattleGroundMgr::BuildGroupJoinedBattlegroundPacket(WorldPacket *data, GroupJoinBattlegroundResult result)
|
||||
{
|
||||
/*bgTypeId is:
|
||||
0 - Your group has joined a battleground queue, but you are not eligible
|
||||
1 - Your group has joined the queue for AV
|
||||
2 - Your group has joined the queue for WS
|
||||
3 - Your group has joined the queue for AB
|
||||
4 - Your group has joined the queue for NA
|
||||
5 - Your group has joined the queue for BE Arena
|
||||
6 - Your group has joined the queue for All Arenas
|
||||
7 - Your group has joined the queue for EotS*/
|
||||
data->Initialize(SMSG_GROUP_JOINED_BATTLEGROUND, 4);
|
||||
*data << uint32(bgTypeId);
|
||||
*data << int32(result);
|
||||
if (result == ERR_BATTLEGROUND_JOIN_TIMED_OUT || result == ERR_BATTLEGROUND_JOIN_FAILED)
|
||||
*data << uint64(0); // player guid
|
||||
}
|
||||
|
||||
void BattleGroundMgr::BuildUpdateWorldStatePacket(WorldPacket *data, uint32 field, uint32 value)
|
||||
|
||||
Reference in New Issue
Block a user