Core/Player: Make chat tag (last byte in SMSG_MESSAGECHAT) a bitmask.

This commit is contained in:
kaelima
2011-11-07 07:16:31 +01:00
parent ae600a0ea2
commit b5cb41b4ea
6 changed files with 28 additions and 19 deletions
+1 -1
View File
@@ -650,7 +650,7 @@ void Channel::Say(uint64 p, const char *what, uint32 lang)
data << p;
data << messageLength;
data << what;
data << uint8(plr ? plr->chatTag() : 0);
data << uint8(plr ? plr->GetChatTag() : 0);
SendToAll(&data, !players[p].IsModerator() ? p : false);
}
+1 -1
View File
@@ -1051,7 +1051,7 @@ void ChatHandler::FillMessageData(WorldPacket* data, WorldSession* session, uint
*data << uint32(messageLength);
*data << message;
if (session != 0 && type != CHAT_MSG_WHISPER_INFORM && type != CHAT_MSG_DND && type != CHAT_MSG_AFK)
*data << uint8(session->GetPlayer()->chatTag());
*data << uint8(session->GetPlayer()->GetChatTag());
else
*data << uint8(0);
}