Fix more warnings.

--HG--
branch : trunk
This commit is contained in:
Spp committed 2010-05-01 22:25:14 +02:00
1 parent dd9485993b
commit e107730ffb
22 files changed
+61 -64

No files matched your search

@@ -326,9 +326,9 @@ struct npc_anchorite_truuenAI : public npc_escortAI
}
}
void EnterCombat(Unit* pWho){}
void EnterCombat(Unit* /*pWho*/){}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
Player* pPlayer = GetPlayerForEscort();
if (pPlayer)
+2 -2
View File
@@ -195,11 +195,11 @@ struct npc_dalindaAI : public npc_escortAI
}
}
void EnterCombat(Unit* pWho) { }
void EnterCombat(Unit* /*pWho*/) { }
void Reset() {}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
Player* pPlayer = GetPlayerForEscort();
if (pPlayer)
+1 -1
View File
@@ -564,7 +564,7 @@ struct npc_wounded_skirmisherAI : public ScriptedAI
}
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (!UpdateVictim())
return;
@@ -50,7 +50,7 @@ struct boss_grobbulusAI : public BossAI
void SpellHitTarget(Unit *pTarget, const SpellEntry *spell)
{
if (spell->Id == SPELL_SLIME_SPRAY)
if (spell->Id == uint32(SPELL_SLIME_SPRAY))
{
if (TempSummon *slime = me->SummonCreature(MOB_FALLOUT_SLIME, pTarget->GetPositionX(), pTarget->GetPositionY(), pTarget->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 0))
DoZoneInCombat(slime);
+1 -3
View File
@@ -366,11 +366,9 @@ struct npc_engineer_heliceAI : public npc_escortAI
{
m_uiChatTimer = 4000;
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
Player* pPlayer = GetPlayerForEscort();
if (HasEscortState(STATE_ESCORT_ESCORTING))
{
if (pPlayer)
+4 -4
View File
@@ -379,11 +379,11 @@ struct npc_injured_goblinAI : public npc_escortAI
}
}
void EnterCombat(Unit* pWho) {}
void EnterCombat(Unit* /*pWho*/) {}
void Reset() {}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
Player* pPlayer = GetPlayerForEscort();
if (HasEscortState(STATE_ESCORT_ESCORTING) && pPlayer)
@@ -419,7 +419,7 @@ bool GossipHello_npc_injured_goblin(Player* pPlayer, Creature* pCreature)
return true;
}
bool QuestAccept_npc_injured_goblin(Player* pPlayer, Creature* pCreature, Quest const *quest)
bool QuestAccept_npc_injured_goblin(Player* /*pPlayer*/, Creature* pCreature, Quest const *quest)
{
if (quest->GetQuestId() == QUEST_BITTER_DEPARTURE)
DoScriptText(SAY_QUEST_ACCEPT, pCreature);
@@ -427,7 +427,7 @@ bool QuestAccept_npc_injured_goblin(Player* pPlayer, Creature* pCreature, Quest
return false;
}
bool GossipSelect_npc_injured_goblin(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_injured_goblin(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
npc_escortAI* pEscortAI = CAST_AI(npc_injured_goblinAI, pCreature->AI());
@@ -409,7 +409,7 @@ struct npc_bloodmaul_brutebaneAI : public ScriptedAI
OgreGUID = 0;
}
void UpdateAI(const uint32 uiDiff) {}
void UpdateAI(const uint32 /*uiDiff*/) {}
};
CreatureAI* GetAI_npc_bloodmaul_brutebane(Creature* pCreature)
+1 -1
View File
@@ -393,7 +393,7 @@ enum TheEmissary
NPC_LEVIROTH = 26452
};
bool ItemUse_item_Trident_of_Nazjan(Player* pPlayer, Item* pItem, const SpellCastTargets &pTargets)
bool ItemUse_item_Trident_of_Nazjan(Player* pPlayer, Item* pItem, const SpellCastTargets & /*pTargets*/)
{
if (pPlayer->GetQuestStatus(QUEST_THE_EMISSARY) == QUEST_STATUS_INCOMPLETE)
{
+1 -1
View File
@@ -2337,7 +2337,7 @@ bool GossipHello_npc_tabard_vendor(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_tabard_vendor(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_tabard_vendor(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{