aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/BattleGroundHandler.cpp14
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())