Remove LOTS of compile warnings
--HG-- branch : trunk
This commit is contained in:
@@ -112,7 +112,7 @@ struct boss_ingvar_the_plundererAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_INGVAR_EVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void DamageTaken(Unit *done_by, uint32 &damage)
|
||||
void DamageTaken(Unit * /*done_by*/, uint32 &damage)
|
||||
{
|
||||
if (damage >= me->GetHealth() && !bIsUndead)
|
||||
{
|
||||
@@ -151,7 +151,7 @@ struct boss_ingvar_the_plundererAI : public ScriptedAI
|
||||
DoScriptText(YELL_AGGRO_2,me);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
DoScriptText(YELL_AGGRO_1,me);
|
||||
|
||||
@@ -159,7 +159,7 @@ struct boss_ingvar_the_plundererAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_INGVAR_EVENT, IN_PROGRESS);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(YELL_DEAD_2,me);
|
||||
|
||||
@@ -167,7 +167,7 @@ struct boss_ingvar_the_plundererAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_INGVAR_EVENT, DONE);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
if (bIsUndead)
|
||||
DoScriptText(YELL_KILL_1,me);
|
||||
@@ -234,7 +234,7 @@ struct boss_ingvar_the_plundererAI : public ScriptedAI
|
||||
Unit *pTarget = SelectUnit(SELECT_TARGET_TOPAGGRO, 1);
|
||||
if (pTarget)
|
||||
{
|
||||
Creature* temp = me->SummonCreature(ENTRY_THROW_TARGET,pTarget->GetPositionX(),pTarget->GetPositionY(),pTarget->GetPositionZ(),0,TEMPSUMMON_TIMED_DESPAWN,2000);
|
||||
me->SummonCreature(ENTRY_THROW_TARGET,pTarget->GetPositionX(),pTarget->GetPositionY(),pTarget->GetPositionZ(),0,TEMPSUMMON_TIMED_DESPAWN,2000);
|
||||
|
||||
DoCast(me, SPELL_SHADOW_AXE_SUMMON);
|
||||
}
|
||||
@@ -333,9 +333,9 @@ struct mob_annhylde_the_callerAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void AttackStart(Unit* who) {}
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
void AttackStart(Unit* /*who*/) {}
|
||||
void MoveInLineOfSight(Unit* /*who*/) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (uiResurectTimer)
|
||||
@@ -402,9 +402,9 @@ struct mob_ingvar_throw_dummyAI : public ScriptedAI
|
||||
}
|
||||
uiDespawnTimer = 7000;
|
||||
}
|
||||
void AttackStart(Unit* who) {}
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
void AttackStart(Unit* /*who*/) {}
|
||||
void MoveInLineOfSight(Unit* /*who*/) {}
|
||||
void EnterCombat(Unit * /*who*/) {}
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (uiDespawnTimer <= diff)
|
||||
|
||||
@@ -76,9 +76,9 @@ struct mob_frost_tombAI : public ScriptedAI
|
||||
}
|
||||
|
||||
void Reset(){ FrostTombGUID = 0; }
|
||||
void EnterCombat(Unit* who) {}
|
||||
void AttackStart(Unit* who) {}
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
void AttackStart(Unit* /*who*/) {}
|
||||
void MoveInLineOfSight(Unit* /*who*/) {}
|
||||
|
||||
void JustDied(Unit *killer)
|
||||
{
|
||||
@@ -93,7 +93,7 @@ struct mob_frost_tombAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
Unit* temp = Unit::GetUnit((*me),FrostTombGUID);
|
||||
if ((temp && temp->isAlive() && !temp->HasAura(SPELL_FROST_TOMB)) || !temp)
|
||||
@@ -131,7 +131,7 @@ struct boss_kelesethAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_PRINCEKELESETH_EVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * victim)
|
||||
{
|
||||
if (victim == me)
|
||||
return;
|
||||
@@ -139,7 +139,7 @@ struct boss_kelesethAI : public ScriptedAI
|
||||
DoScriptText(SAY_KILL, me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
|
||||
@@ -162,7 +162,7 @@ struct boss_kelesethAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_PRINCEKELESETH_EVENT, DONE);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
DoZoneInCombat();
|
||||
@@ -250,7 +250,7 @@ struct mob_vrykul_skeletonAI : public ScriptedAI
|
||||
isDead = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who){}
|
||||
void EnterCombat(Unit * /*who*/){}
|
||||
void DamageTaken(Unit *done_by, uint32 &damage)
|
||||
{
|
||||
if (done_by->GetGUID() == me->GetGUID())
|
||||
|
||||
@@ -92,7 +92,7 @@ struct boss_skarvald_the_constructorAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * who)
|
||||
{
|
||||
if (!ghost && pInstance)
|
||||
{
|
||||
@@ -136,7 +136,7 @@ struct boss_skarvald_the_constructorAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
if (!ghost)
|
||||
{
|
||||
@@ -240,7 +240,7 @@ struct boss_dalronn_the_controllerAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * who)
|
||||
{
|
||||
if (!ghost && pInstance)
|
||||
{
|
||||
@@ -284,7 +284,7 @@ struct boss_dalronn_the_controllerAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
if (!ghost)
|
||||
{
|
||||
|
||||
@@ -113,7 +113,7 @@ struct instance_utgarde_keep : public ScriptedInstance
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* pCreature, bool add)
|
||||
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
|
||||
{
|
||||
switch(pCreature->GetEntry())
|
||||
{
|
||||
@@ -124,7 +124,7 @@ struct instance_utgarde_keep : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
void OnGameObjectCreate(GameObject* pGo, bool add)
|
||||
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
|
||||
{
|
||||
switch(pGo->GetEntry())
|
||||
{
|
||||
|
||||
@@ -62,7 +62,7 @@ struct npc_dragonflayer_forge_masterAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit *killer)
|
||||
void JustDied(Unit * /*killer*/)
|
||||
{
|
||||
if (fm_Type == 0) fm_Type = GetForgeMasterType();
|
||||
if (pInstance)
|
||||
@@ -82,7 +82,7 @@ struct npc_dragonflayer_forge_masterAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit *who)
|
||||
void EnterCombat(Unit * /*who*/)
|
||||
{
|
||||
if (fm_Type == 0) fm_Type = GetForgeMasterType();
|
||||
if (pInstance)
|
||||
@@ -132,7 +132,7 @@ struct npc_dragonflayer_forge_masterAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (fm_Type == 0)
|
||||
fm_Type = GetForgeMasterType();
|
||||
|
||||
@@ -121,7 +121,7 @@ struct boss_palehoofAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
@@ -177,7 +177,7 @@ struct boss_palehoofAI : public ScriptedAI
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
if (pInstance)
|
||||
@@ -187,7 +187,7 @@ struct boss_palehoofAI : public ScriptedAI
|
||||
pTemp->DisappearAndDie();
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2), me);
|
||||
}
|
||||
@@ -326,7 +326,7 @@ struct mob_ravenous_furbolgAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (pInstance)
|
||||
{
|
||||
@@ -434,7 +434,7 @@ struct mob_frenzied_worgenAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_GORTOK_PALEHOOF_EVENT, IN_PROGRESS);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (pInstance)
|
||||
{
|
||||
@@ -542,7 +542,7 @@ struct mob_ferocious_rhinoAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (pInstance)
|
||||
{
|
||||
@@ -656,7 +656,7 @@ struct mob_massive_jormungarAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (pInstance)
|
||||
{
|
||||
@@ -709,7 +709,7 @@ struct mob_palehoof_orbAI : public ScriptedAI
|
||||
{
|
||||
if (currentPhase<5&¤tPhase >= 0)
|
||||
{
|
||||
Creature *pNext;
|
||||
Creature *pNext = NULL;
|
||||
switch(currentPhase)
|
||||
{
|
||||
case PHASE_FRENZIED_WORGEN: pNext = Unit::GetCreature((*me), pInstance ? pInstance->GetData64(DATA_MOB_FRENZIED_WORGEN) : 0); break;
|
||||
@@ -739,7 +739,7 @@ struct mob_palehoof_orbAI : public ScriptedAI
|
||||
return;
|
||||
if (id<0 || id>4)
|
||||
return;
|
||||
Creature *pNext;
|
||||
Creature *pNext = NULL;
|
||||
switch(id)
|
||||
{
|
||||
case PHASE_FRENZIED_WORGEN: pNext = Unit::GetCreature((*me), pInstance ? pInstance->GetData64(DATA_MOB_FRENZIED_WORGEN) : 0); break;
|
||||
@@ -762,7 +762,7 @@ CreatureAI* GetAI_mob_palehoof_orb(Creature* pCreature)
|
||||
|
||||
|
||||
|
||||
bool GOHello_palehoof_sphere(Player *pPlayer, GameObject *pGO)
|
||||
bool GOHello_palehoof_sphere(Player * /*pPlayer*/, GameObject *pGO)
|
||||
{
|
||||
ScriptedInstance *pInstance = pGO->GetInstanceData();
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ struct boss_skadiAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_SKADI_THE_RUTHLESS_EVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
|
||||
@@ -171,7 +171,7 @@ struct boss_skadiAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
|
||||
@@ -179,7 +179,7 @@ struct boss_skadiAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_SKADI_THE_RUTHLESS_EVENT, DONE);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_KILL_1,SAY_KILL_2,SAY_KILL_3), me);
|
||||
}
|
||||
@@ -219,7 +219,7 @@ struct boss_skadiAI : public ScriptedAI
|
||||
uint8 uiMaxSpawn = DUNGEON_MODE(5, 6);
|
||||
for (uint8 i = 0; i < uiMaxSpawn; ++i)
|
||||
{
|
||||
Creature* pTemp;
|
||||
Creature* pTemp = NULL;
|
||||
switch (urand(0,2))
|
||||
{
|
||||
case 0: pTemp = me->SummonCreature(CREATURE_YMIRJAR_WARRIOR, SpawnLoc[spot].x+rand()%5, SpawnLoc[spot].y+rand()%5, SpawnLoc[spot].z, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000); break;
|
||||
|
||||
@@ -131,7 +131,7 @@ struct boss_svalaAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void AttackStart(Unit* who) {}
|
||||
void AttackStart(Unit* /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -209,14 +209,14 @@ struct mob_ritual_channelerAI : public Scripted_NoMovementAI
|
||||
}
|
||||
|
||||
// called by svala sorrowgrave to set guid of victim
|
||||
void DoAction(uint32 action)
|
||||
void DoAction(uint32 /*action*/)
|
||||
{
|
||||
if (pInstance)
|
||||
if (Unit *pVictim = me->GetUnit(*me, pInstance->GetData64(DATA_SACRIFICED_PLAYER)))
|
||||
DoCast(pVictim, SPELL_PARALYZE);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
}
|
||||
};
|
||||
@@ -264,7 +264,7 @@ struct boss_svala_sorrowgraveAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
|
||||
@@ -353,7 +353,7 @@ struct boss_svala_sorrowgraveAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* pVictim)
|
||||
void KilledUnit(Unit* /*pVictim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3), me);
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ struct boss_ymironAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_KING_YMIRON_EVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
|
||||
@@ -325,7 +325,7 @@ struct boss_ymironAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
|
||||
@@ -336,7 +336,7 @@ struct boss_ymironAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_KING_YMIRON_EVENT, DONE);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit *victim)
|
||||
void KilledUnit(Unit * /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3,SAY_SLAY_4), me);
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ struct instance_pinnacle : public ScriptedInstance
|
||||
return false;
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* pCreature, bool add)
|
||||
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
|
||||
{
|
||||
switch(pCreature->GetEntry())
|
||||
{
|
||||
@@ -92,7 +92,7 @@ struct instance_pinnacle : public ScriptedInstance
|
||||
}
|
||||
}
|
||||
|
||||
void OnGameObjectCreate(GameObject* pGo, bool add)
|
||||
void OnGameObjectCreate(GameObject* pGo, bool /*add*/)
|
||||
{
|
||||
switch(pGo->GetEntry())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user