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/VoiceChatHandler.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/VoiceChatHandler.cpp')
-rw-r--r-- | src/game/VoiceChatHandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/VoiceChatHandler.cpp b/src/game/VoiceChatHandler.cpp index 0aef129a010..e4c588dc4af 100644 --- a/src/game/VoiceChatHandler.cpp +++ b/src/game/VoiceChatHandler.cpp @@ -28,6 +28,7 @@ void WorldSession::HandleVoiceSessionEnableOpcode( WorldPacket & recv_data ) { sLog.outDebug("WORLD: CMSG_VOICE_SESSION_ENABLE"); // uint8 isVoiceEnabled, uint8 isMicrophoneEnabled + recv_data.read_skip2<uint8,uint8>(); recv_data.hexlike(); } @@ -41,7 +42,8 @@ void WorldSession::HandleChannelVoiceOnOpcode( WorldPacket & recv_data ) void WorldSession::HandleSetActiveVoiceChannel( WorldPacket & recv_data ) { sLog.outDebug("WORLD: CMSG_SET_ACTIVE_VOICE_CHANNEL"); - // uint32, string + recv_data.read_skip<uint32>(); + recv_data.read_skip<char*>(); recv_data.hexlike(); } |