aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2012-11-21 00:43:24 +0100
committerVincent-Michael <Vincent_Michael@gmx.de>2012-11-21 00:43:24 +0100
commit84d88cbcec87234d35be5ffac76433aa30785edf (patch)
treef72aedc48d18fa147c2d14bf8b4177903a851e00 /src
parent695836cb0151935a124db4a4f1be1d46c89a1152 (diff)
Core: Fix warnings
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp b/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp
index 9b59be3bb5c..78a5f3797d8 100644
--- a/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp
@@ -252,20 +252,17 @@ public:
laugh = urand(15000, 30000);
}
- void EnterCombat(Unit* /*who*/) {}
- void SaySound(int32 textEntry, Unit* target = 0)
+ void EnterCombat(Unit* /*who*/) { }
+
+ void SaySound(uint8 textEntry, Unit* target = 0)
{
if (target)
- {
Talk(textEntry, target->GetGUID());
- }
else
- {
Talk(textEntry);
- }
+
//DoCast(me, SPELL_HEAD_SPEAKS, true);
- Creature* speaker = DoSpawnCreature(HELPER, 0, 0, 0, 0, TEMPSUMMON_TIMED_DESPAWN, 1000);
- if (speaker)
+ if (Creature* speaker = DoSpawnCreature(HELPER, 0, 0, 0, 0, TEMPSUMMON_TIMED_DESPAWN, 1000))
speaker->CastSpell(speaker, SPELL_HEAD_SPEAKS, false);
laugh += 3000;
}
@@ -525,7 +522,7 @@ public:
}
}
- void SaySound(int32 textEntry, Unit* target = 0)
+ void SaySound(uint8 textEntry, Unit* target = 0)
{
if (target)
Talk(textEntry, target->GetGUID());