[12038] Use bitmask for chat tag.

Thanks to stfx for porting

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
kaelima 2012-07-13 22:23:43 +02:00 committed by Schmoozerd
parent d563c6576d
commit fd6c2e1751
6 changed files with 28 additions and 19 deletions

View file

@ -574,7 +574,7 @@ void Channel::Say(ObjectGuid p, const char *what, uint32 lang)
data << ObjectGuid(p);
data << uint32(messageLength);
data << what;
data << uint8(plr ? plr->chatTag() : 0);
data << uint8(plr ? plr->GetChatTag() : CHAT_TAG_NONE);
SendToAll(&data, !m_players[p].IsModerator() ? p : ObjectGuid());
}