diff options
author | Machiavelli <none@none> | 2009-12-22 16:14:44 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2009-12-22 16:14:44 +0100 |
commit | d2770029ae23448ecaba33e78d71a52137f59559 (patch) | |
tree | 6423dbc1ea6e80cb992499a108c31b748f9e2b47 | |
parent | da35e70579775c3000275af9e1ce117708bed631 (diff) |
Send arena team name as uint8(0) in case of a nonrated match in MSG_PVP_LOG_DATA.
--HG--
branch : trunk
-rw-r--r-- | src/game/BattleGroundMgr.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp index ee825a67f22..0853148362f 100644 --- a/src/game/BattleGroundMgr.cpp +++ b/src/game/BattleGroundMgr.cpp @@ -1343,9 +1343,9 @@ void BattleGroundMgr::BuildPvpLogDataPacket(WorldPacket *data, BattleGround *bg) { for (int8 i = 1; i >= 0; --i) // Rating difference per team first { - *data << uint32(0); - *data << uint32(3000 + bg->m_ArenaTeamRatingChanges[i]); - *data << uint32(0); // added again in 3.1 + *data << uint32(0); // Padding + *data << uint32(3000 + bg->m_ArenaTeamRatingChanges[i]); // rating change + 3000 + *data << uint32(0); // added again in 3.1 - padding? } for (int8 i = 1; i >= 0; --i) // Send out arena team names per team { @@ -1356,8 +1356,9 @@ void BattleGroundMgr::BuildPvpLogDataPacket(WorldPacket *data, BattleGround *bg) } else // if (!bg->isRated()) { - *data << uint32(0) << uint32(0) << uint32(0); - *data << uint32(0) << uint32(0) << uint32(0); + // padding // /\rating // padding // team name + *data << uint32(0) << uint32(0) << uint32(0) << uint8(0); + *data << uint32(0) << uint32(0) << uint32(0) << uint8(0); } } |