Core/PacketIO: Fixed SMSG_PLAY_SOUND structure
This commit is contained in:
1 parent
09190c7e23
commit
7d64b56db1
7 files changed
+10
-2
No files matched your search
@@ -2348,7 +2348,8 @@ bool WorldObject::CanDetectStealthOf(WorldObject const* obj) const
|
||||
void WorldObject::SendPlaySound(uint32 Sound, bool OnlySelf)
|
||||
{
|
||||
WorldPacket data(SMSG_PLAY_SOUND, 4);
|
||||
data << Sound;
|
||||
data << uint32(Sound);
|
||||
data << uint64(GetGUID());
|
||||
if (OnlySelf && GetTypeId() == TYPEID_PLAYER)
|
||||
this->ToPlayer()->GetSession()->SendPacket(&data);
|
||||
else
|
||||
@@ -3294,6 +3295,7 @@ void WorldObject::PlayDirectSound(uint32 sound_id, Player* target /*= NULL*/)
|
||||
{
|
||||
WorldPacket data(SMSG_PLAY_SOUND, 4);
|
||||
data << uint32(sound_id);
|
||||
data << uint64(GetGUID());
|
||||
if (target)
|
||||
target->SendDirectMessage(&data);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user