diff options
| author | megamage <none@none> | 2009-08-19 16:54:52 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-19 16:54:52 -0500 |
| commit | edc05f2c19b320ea28536ea963c16266a152d1b4 (patch) | |
| tree | 5a9d4179887932bd05b8392e6064a815003b97f1 /src/game/BattleGroundHandler.cpp | |
| parent | 012d6fa865fb8083dcbeae9b04926527b3c19f4e (diff) | |
[8382] Implement ByteArray functions for skip read of fields not needed for server in received packets. Author: VladimirMangos
* Use this fucntions in some case.
* Change some packets to form: read fields first check later for better control recieved packets structure.
* Fix CMSG_STAND_STATE_CHANGE packet structure to more correct.
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGroundHandler.cpp')
| -rw-r--r-- | src/game/BattleGroundHandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/BattleGroundHandler.cpp b/src/game/BattleGroundHandler.cpp index 45323313e89..cc6793b8575 100644 --- a/src/game/BattleGroundHandler.cpp +++ b/src/game/BattleGroundHandler.cpp @@ -617,11 +617,7 @@ void WorldSession::HandleAreaSpiritHealerQueueOpcode( WorldPacket & recv_data ) void WorldSession::HandleBattlemasterJoinArena( WorldPacket & recv_data ) { sLog.outDebug("WORLD: CMSG_BATTLEMASTER_JOIN_ARENA"); - recv_data.hexlike(); - - // ignore if we already in BG or BG queue - if (_player->InBattleGround()) - return; + //recv_data.hexlike(); uint64 guid; // arena Battlemaster guid uint8 arenaslot; // 2v2, 3v3 or 5v5 @@ -631,6 +627,10 @@ void WorldSession::HandleBattlemasterJoinArena( WorldPacket & recv_data ) recv_data >> guid >> arenaslot >> asGroup >> isRated; + // ignore if we already in BG or BG queue + if (_player->InBattleGround()) + return; + Creature *unit = GetPlayer()->GetMap()->GetCreature(guid); if (!unit) return; |
