mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
[svn] * PlaySound changed to SendPlaySound, moved to WorldObject and used everywhere instead of hard-coding packet
--HG-- branch : trunk
This commit is contained in:
@@ -1853,10 +1853,7 @@ void ProcessScriptText(uint32 id, WorldObject* pSource, Unit* target)
|
||||
{
|
||||
if(GetSoundEntriesStore()->LookupEntry((*i).second.SoundId))
|
||||
{
|
||||
WorldPacket data(4);
|
||||
data.SetOpcode(SMSG_PLAY_SOUND);
|
||||
data << uint32((*i).second.SoundId);
|
||||
pSource->SendMessageToSet(&data,false);
|
||||
pSource->SendPlaySound((*i).second.SoundId, false);
|
||||
}
|
||||
else
|
||||
error_log("TSCR: ProcessScriptText id %u tried to process invalid soundid %u.",id,(*i).second.SoundId);
|
||||
|
||||
Reference in New Issue
Block a user