diff options
| author | n0n4m3 <none@none> | 2010-01-16 19:28:36 +0300 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2010-01-16 19:28:36 +0300 |
| commit | 7be4b2a85ca2efa117c052ebfaf2c19983d0f476 (patch) | |
| tree | 20a34cb915f408ef532e609f2d27c4c7fc187ac7 /src | |
| parent | 585f4317c129214f852cf182b9a963f89ed9f1e8 (diff) | |
Fixed unread packet tail spam for CMSG_LEAVE_BATTLEFIELD, by VladimirMangos.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/BattleGroundHandler.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/game/BattleGroundHandler.cpp b/src/game/BattleGroundHandler.cpp index 02bbd01b4e4..2db2812d1ea 100644 --- a/src/game/BattleGroundHandler.cpp +++ b/src/game/BattleGroundHandler.cpp @@ -500,18 +500,14 @@ void WorldSession::HandleBattleFieldPortOpcode( WorldPacket &recv_data ) } } -void WorldSession::HandleLeaveBattlefieldOpcode( WorldPacket & /*recv_data*/ ) +void WorldSession::HandleLeaveBattlefieldOpcode(WorldPacket& recv_data) { sLog.outDebug( "WORLD: Recvd CMSG_LEAVE_BATTLEFIELD Message"); - //uint8 unk1, unk2; - //uint32 bgTypeId; // id from DBC - //uint16 unk3; - - //recv_data >> unk1 >> unk2 >> bgTypeId >> unk3; - no used currently - - //if(bgTypeId >= MAX_BATTLEGROUND_TYPES) // cheating? but not important in this case - // return; + recv_data.read_skip<uint8>(); // unk1 + recv_data.read_skip<uint8>(); // unk2 + recv_data.read_skip<uint32>(); // BattleGroundTypeId + recv_data.read_skip<uint16>(); // unk3 // not allow leave battleground in combat if (_player->isInCombat()) |
