Core: Fix warnings

This commit is contained in:
Vincent-Michael
2012-11-27 12:36:38 +01:00
parent 25f1d61923
commit 8a7ec89883
4 changed files with 8 additions and 8 deletions

View File

@@ -113,7 +113,7 @@ public:
for (std::list<uint64>::const_iterator itr = Crystals.begin(); itr != Crystals.end(); ++itr)
{
//Unit* unit = Unit::GetUnit(*me, FelCrystals[i]);
if (Creature *creature = Unit::GetCreature(*me, *itr))
if (Creature* creature = Unit::GetCreature(*me, *itr))
{
if (!creature->isAlive())
creature->Respawn(); // Let the core handle setting death state, etc.

View File

@@ -37,9 +37,9 @@ EndContentData */
## npc_calvin_montague
######*/
enum eCalvin
enum Calvin
{
SAY_COMPLETE = -1000431,
SAY_COMPLETE = 0,
SPELL_DRINK = 2639, // possibly not correct spell (but iconId is correct)
QUEST_590 = 590,
FACTION_HOSTILE = 168
@@ -113,15 +113,15 @@ public:
}
}
void UpdateAI(const uint32 uiDiff)
void UpdateAI(uint32 const diff)
{
if (m_uiPhase)
{
if (m_uiPhaseTimer <= uiDiff)
if (m_uiPhaseTimer <= diff)
m_uiPhaseTimer = 7500;
else
{
m_uiPhaseTimer -= uiDiff;
m_uiPhaseTimer -= diff;
return;
}

View File

@@ -860,7 +860,7 @@ public:
}
};
CreatureAI *GetAI(Creature *creature) const
CreatureAI* GetAI(Creature* creature) const
{
return new npc_blessed_bannerAI(creature);
}

View File

@@ -2951,7 +2951,7 @@ public:
me->GetMotionMaster()->MoveFollow(owner, PET_FOLLOW_DIST, PET_FOLLOW_ANGLE);
}
void EnterCombat(Unit * /*who*/) { }
void EnterCombat(Unit* /*who*/) { }
void DoAction(const int32 /*param*/)
{