aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts/ScriptMgr.cpp
diff options
context:
space:
mode:
authorNeo2003 <none@none>2008-10-05 11:38:24 -0500
committerNeo2003 <none@none>2008-10-05 11:38:24 -0500
commit1fc73ff41b0b113ee0cbc072f8ed81a2c572924c (patch)
treee2921caa16730e21b3e7988c2bbb1a12f8fce2b1 /src/bindings/scripts/ScriptMgr.cpp
parent9245de813869b8c386b651204678d1a1b4d84ea7 (diff)
[svn] * PlaySound changed to SendPlaySound, moved to WorldObject and used everywhere instead of hard-coding packet
--HG-- branch : trunk
Diffstat (limited to 'src/bindings/scripts/ScriptMgr.cpp')
-rw-r--r--src/bindings/scripts/ScriptMgr.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bindings/scripts/ScriptMgr.cpp b/src/bindings/scripts/ScriptMgr.cpp
index 4dff1b7c374..e382b62e2e3 100644
--- a/src/bindings/scripts/ScriptMgr.cpp
+++ b/src/bindings/scripts/ScriptMgr.cpp
@@ -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);