aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/GroupHandler.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2012-07-11 19:26:26 +0200
committerShauren <shauren.trinity@gmail.com>2012-07-11 19:26:26 +0200
commit492fd80b0621728889c6013682d07b420778ef9a (patch)
tree6539618a8f34e937b5ca5af3044ca0fbcca15d7b /src/server/game/Handlers/GroupHandler.cpp
parent7611ab69be5982dfe558d6e7554545ea253cbb60 (diff)
Core/Misc
* Cleaned up packet manipulation methods, no need to keep duplicate sets of functions doing the same * Added a very basic ObjectGuid structure for easier (and endian-safe) method of accessing individual guid bytes
Diffstat (limited to 'src/server/game/Handlers/GroupHandler.cpp')
-rwxr-xr-xsrc/server/game/Handlers/GroupHandler.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/server/game/Handlers/GroupHandler.cpp b/src/server/game/Handlers/GroupHandler.cpp
index 626221e9696..494a8471a6a 100755
--- a/src/server/game/Handlers/GroupHandler.cpp
+++ b/src/server/game/Handlers/GroupHandler.cpp
@@ -62,18 +62,18 @@ void WorldSession::SendPartyResult(PartyOperation operation, const std::string&
void WorldSession::HandleGroupInviteOpcode(WorldPacket & recv_data)
{
sLog->outDebug(LOG_FILTER_NETWORKIO, "WORLD: Received CMSG_GROUP_INVITE");
-
- BytesGuid guid;
- guid.guid = 0;
-
- recv_data.ReadByteMask(guid.bytes[6]);
- recv_data.ReadByteMask(guid.bytes[5]);
- recv_data.ReadByteMask(guid.bytes[0]);
- recv_data.ReadByteMask(guid.bytes[3]);
- recv_data.ReadByteMask(guid.bytes[4]);
- recv_data.ReadByteMask(guid.bytes[7]);
- recv_data.ReadByteMask(guid.bytes[1]);
- recv_data.ReadByteMask(guid.bytes[2]);
+
+ //BytesGuid guid;
+ //guid.guid = 0;
+
+ //recv_data.ReadByteMask(guid.bytes[6]);
+ //recv_data.ReadByteMask(guid.bytes[5]);
+ //recv_data.ReadByteMask(guid.bytes[0]);
+ //recv_data.ReadByteMask(guid.bytes[3]);
+ //recv_data.ReadByteMask(guid.bytes[4]);
+ //recv_data.ReadByteMask(guid.bytes[7]);
+ //recv_data.ReadByteMask(guid.bytes[1]);
+ //recv_data.ReadByteMask(guid.bytes[2]);
recv_data.read_skip<uint32>();
recv_data.read_skip<uint32>();
@@ -82,16 +82,16 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket & recv_data)
recv_data >> membername;
recv_data.read_skip<uint32>();
- recv_data.ReadByteSeq(guid.bytes[0]);
- recv_data.ReadByteSeq(guid.bytes[7]);
- recv_data.ReadByteSeq(guid.bytes[4]);
- recv_data.ReadByteSeq(guid.bytes[1]);
- recv_data.ReadByteSeq(guid.bytes[2]);
- recv_data.ReadByteSeq(guid.bytes[6]);
- recv_data.ReadByteSeq(guid.bytes[5]);
+ //recv_data.ReadByteSeq(guid.bytes[0]);
+ //recv_data.ReadByteSeq(guid.bytes[7]);
+ //recv_data.ReadByteSeq(guid.bytes[4]);
+ //recv_data.ReadByteSeq(guid.bytes[1]);
+ //recv_data.ReadByteSeq(guid.bytes[2]);
+ //recv_data.ReadByteSeq(guid.bytes[6]);
+ //recv_data.ReadByteSeq(guid.bytes[5]);
std::string string0;
recv_data >> string0;
- recv_data.ReadByteSeq(guid.bytes[3]);
+ //recv_data.ReadByteSeq(guid.bytes[3]);
// attempt add selected player