diff options
author | Golrag <golrag.jeremy@gmail.com> | 2015-04-17 09:33:41 +0200 |
---|---|---|
committer | Golrag <golrag.jeremy@gmail.com> | 2015-04-17 11:45:07 +0200 |
commit | 82a33c7fa868d5ace7f855dba26b5f41c12bab6e (patch) | |
tree | 304c6bacc7d02b8027fd33b2f6d0ac0f3b35ada3 /src/server/game/Battlefield/Battlefield.cpp | |
parent | 280a0b8e35ccf2fde55199938dffb2851892eaa2 (diff) |
Core/PacketIO: SMSG_PLAY_SOUND
Diffstat (limited to 'src/server/game/Battlefield/Battlefield.cpp')
-rw-r--r-- | src/server/game/Battlefield/Battlefield.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/server/game/Battlefield/Battlefield.cpp b/src/server/game/Battlefield/Battlefield.cpp index f281b36e810..dc1b666a921 100644 --- a/src/server/game/Battlefield/Battlefield.cpp +++ b/src/server/game/Battlefield/Battlefield.cpp @@ -29,6 +29,7 @@ #include "ObjectAccessor.h" #include "ObjectMgr.h" #include "WorldPacket.h" +#include "MiscPackets.h" Battlefield::Battlefield() { @@ -344,14 +345,9 @@ void Battlefield::EndBattle(bool endByTimer) SendInitWorldStatesToAll(); } -void Battlefield::DoPlaySoundToAll(uint32 SoundID) +void Battlefield::DoPlaySoundToAll(uint32 soundID) { - WorldPacket data; - data.Initialize(SMSG_PLAY_SOUND, 4 + 8); - data << uint32(SoundID); - data << uint64(0); - - BroadcastPacketToWar(&data); + BroadcastPacketToWar(WorldPackets::Misc::PlaySound(ObjectGuid::Empty, soundID).Write()); } bool Battlefield::HasPlayer(Player* player) const |