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

--HG--
branch : trunk
This commit is contained in:
Neo2003
2008-10-05 11:38:24 -05:00
parent 9245de8138
commit 1fc73ff41b
8 changed files with 24 additions and 30 deletions

View File

@@ -5,7 +5,6 @@
#include "precompiled.h"
#include "Item.h"
#include "Spell.h"
#include "WorldPacket.h"
// Spell summary for ScriptedAI::SelectSpell
struct TSpellSummary {
@@ -202,10 +201,7 @@ void ScriptedAI::DoPlaySoundToSet(Unit* unit, uint32 sound)
return;
}
WorldPacket data(4);
data.SetOpcode(SMSG_PLAY_SOUND);
data << uint32(sound);
unit->SendMessageToSet(&data,false);
unit->SendPlaySound(sound, false);
}
Creature* ScriptedAI::DoSpawnCreature(uint32 id, float x, float y, float z, float angle, uint32 type, uint32 despawntime)