* Tabs to spaces -- using: perl -p -i -e "s/\t/ /g" *

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2009-04-07 10:51:45 +02:00
parent 81e2f4ab89
commit 2fe9fed7c7
21 changed files with 388 additions and 388 deletions
+13 -13
View File
@@ -623,14 +623,14 @@ bool Creature::AIM_Initialize(CreatureAI* ai)
void Creature::Motion_Initialize()
{
if(!m_formation)
i_motionMaster.Initialize();
else if(m_formation->getLeader() == this)
{
m_formation->FormationReset(false);
i_motionMaster.Initialize();
}
else if(m_formation->isFormed())
if(!m_formation)
i_motionMaster.Initialize();
else if(m_formation->getLeader() == this)
{
m_formation->FormationReset(false);
i_motionMaster.Initialize();
}
else if(m_formation->isFormed())
i_motionMaster.MoveIdle(MOTION_SLOT_IDLE); //wait the order of leader
else
i_motionMaster.Initialize();
@@ -1672,10 +1672,10 @@ void Creature::setDeathState(DeathState s)
Unit::setDeathState(CORPSE);
//Dismiss group if is leader
if(m_formation && m_formation->getLeader() == this)
m_formation->FormationReset(true);
}
//Dismiss group if is leader
if(m_formation && m_formation->getLeader() == this)
m_formation->FormationReset(true);
}
if(s == JUST_ALIVED)
{
//if(isPet())
@@ -1691,7 +1691,7 @@ void Creature::setDeathState(DeathState s)
SetMeleeDamageSchool(SpellSchools(cinfo->dmgschool));
LoadCreaturesAddon(true);
Motion_Initialize();
}
}
}
bool Creature::FallGround()