Show
Ignore:
Timestamp:
11/19/08 13:22:59 (17 years ago)
Author:
yumileroy
Message:

[svn] * PlaySound? changed to SendPlaySound?, moved to WorldObject? and used everywhere instead of hard-coding packet

Original author: Neo2003
Date: 2008-10-05 11:38:24-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/bindings/scripts/ScriptMgr.cpp

    r6 r12  
    18541854        if(GetSoundEntriesStore()->LookupEntry((*i).second.SoundId)) 
    18551855        { 
    1856             WorldPacket data(4); 
    1857             data.SetOpcode(SMSG_PLAY_SOUND); 
    1858             data << uint32((*i).second.SoundId); 
    1859             pSource->SendMessageToSet(&data,false); 
     1856            pSource->SendPlaySound((*i).second.SoundId, false); 
    18601857        } 
    18611858        else