Better way to fix some warnings from rev 621c100eeb.

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-31 13:31:38 +02:00
parent 866c28fbec
commit b5beb1c706
2 changed files with 9 additions and 9 deletions
@@ -128,7 +128,7 @@ static SpiritInfoStruct SpiritInfo[] =
struct TransformStruct struct TransformStruct
{ {
uint32 sound; uint32 sound;
std::string text; const char* text;
uint32 spell, unaura; uint32 spell, unaura;
}; };
@@ -353,7 +353,7 @@ class boss_zuljin : public CreatureScript
me->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID, 0); me->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID, 0);
me->RemoveAurasDueToSpell(Transform[Phase].unaura); me->RemoveAurasDueToSpell(Transform[Phase].unaura);
DoCast(me, Transform[Phase].spell); DoCast(me, Transform[Phase].spell);
me->MonsterYell(Transform[Phase].text.c_str(), LANG_UNIVERSAL, NULL); me->MonsterYell(Transform[Phase].text, LANG_UNIVERSAL, NULL);
DoPlaySoundToSet(me, Transform[Phase].sound); DoPlaySoundToSet(me, Transform[Phase].sound);
if (Phase > 0) if (Phase > 0)
{ {
@@ -243,7 +243,7 @@ static EventIllidan MaxTimer[]=
struct Yells struct Yells
{ {
uint32 sound; uint32 sound;
std::string text; const char* text;
uint32 pCreature, timer, emote; uint32 pCreature, timer, emote;
bool Talk; bool Talk;
}; };
@@ -629,8 +629,8 @@ public:
{ {
if (Conversation[count].emote) if (Conversation[count].emote)
pCreature->HandleEmoteCommand(Conversation[count].emote); // Make the Creature do some animation! pCreature->HandleEmoteCommand(Conversation[count].emote); // Make the Creature do some animation!
if (Conversation[count].text.size()) if (Conversation[count].text)
pCreature->MonsterYell(Conversation[count].text.c_str(), LANG_UNIVERSAL, 0); // Have the Creature yell out some text pCreature->MonsterYell(Conversation[count].text, LANG_UNIVERSAL, 0); // Have the Creature yell out some text
if (Conversation[count].sound) if (Conversation[count].sound)
DoPlaySoundToSet(pCreature, Conversation[count].sound); // Play some sound on the creature DoPlaySoundToSet(pCreature, Conversation[count].sound); // Play some sound on the creature
} }
@@ -1017,8 +1017,8 @@ public:
{ {
uint32 random = rand()%4; uint32 random = rand()%4;
uint32 soundid = RandomTaunts[random].sound; uint32 soundid = RandomTaunts[random].sound;
if (RandomTaunts[random].text.size()) if (RandomTaunts[random].text)
me->MonsterYell(RandomTaunts[random].text.c_str(), LANG_UNIVERSAL, 0); me->MonsterYell(RandomTaunts[random].text, LANG_UNIVERSAL, 0);
if (soundid) if (soundid)
DoPlaySoundToSet(me, soundid); DoPlaySoundToSet(me, soundid);
} }
@@ -1318,8 +1318,8 @@ public:
{ {
uint32 random = rand()%4; uint32 random = rand()%4;
uint32 sound = MaievTaunts[random].sound; uint32 sound = MaievTaunts[random].sound;
if (MaievTaunts[random].text.size()) if (MaievTaunts[random].text)
me->MonsterYell(MaievTaunts[random].text.c_str(), LANG_UNIVERSAL, 0); me->MonsterYell(MaievTaunts[random].text, LANG_UNIVERSAL, 0);
DoPlaySoundToSet(me, sound); DoPlaySoundToSet(me, sound);
Timer[EVENT_MAIEV_TAUNT] = 22000 + rand()%21 * 1000; Timer[EVENT_MAIEV_TAUNT] = 22000 + rand()%21 * 1000;
} }