diff options
| author | Spp <none@none> | 2010-08-31 11:39:51 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-08-31 11:39:51 +0200 |
| commit | b9e19572c446dc6cbb4a04740db1aae39e670f92 (patch) | |
| tree | e5135430f1918ce48a755aaf487aeb056d396459 /src/server/scripts/Outland | |
| parent | 849ae84f5b79f52ac60a904f98b10219a0ed7cf7 (diff) | |
Core: Fix more warnings (very few left under linux 32)
--HG--
branch : trunk
Diffstat (limited to 'src/server/scripts/Outland')
| -rw-r--r-- | src/server/scripts/Outland/BlackTemple/boss_illidan.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp b/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp index d81de782f19..d3749f147a9 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp @@ -243,7 +243,7 @@ static EventIllidan MaxTimer[]= struct Yells { uint32 sound; - char* text; + std::string text; uint32 pCreature, timer, emote; bool Talk; }; @@ -629,8 +629,8 @@ public: { if (Conversation[count].emote) pCreature->HandleEmoteCommand(Conversation[count].emote); // Make the Creature do some animation! - if (Conversation[count].text) - pCreature->MonsterYell(Conversation[count].text, LANG_UNIVERSAL, 0); // Have the Creature yell out some text + if (Conversation[count].text.size()) + pCreature->MonsterYell(Conversation[count].text.c_str(), LANG_UNIVERSAL, 0); // Have the Creature yell out some text if (Conversation[count].sound) DoPlaySoundToSet(pCreature, Conversation[count].sound); // Play some sound on the creature } @@ -1016,10 +1016,9 @@ public: case EVENT_TAUNT: { uint32 random = rand()%4; - char* yell = RandomTaunts[random].text; uint32 soundid = RandomTaunts[random].sound; - if (yell) - me->MonsterYell(yell, LANG_UNIVERSAL, 0); + if (RandomTaunts[random].text.size()) + me->MonsterYell(RandomTaunts[random].text.c_str(), LANG_UNIVERSAL, 0); if (soundid) DoPlaySoundToSet(me, soundid); } @@ -1318,9 +1317,9 @@ public: case EVENT_MAIEV_TAUNT: { uint32 random = rand()%4; - char* text = MaievTaunts[random].text; uint32 sound = MaievTaunts[random].sound; - me->MonsterYell(text, LANG_UNIVERSAL, 0); + if (MaievTaunts[random].text.size()) + me->MonsterYell(MaievTaunts[random].text.c_str(), LANG_UNIVERSAL, 0); DoPlaySoundToSet(me, sound); Timer[EVENT_MAIEV_TAUNT] = 22000 + rand()%21 * 1000; } |
