aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-04-07 10:51:45 +0200
committerXTZGZoReX <none@none>2009-04-07 10:51:45 +0200
commit2fe9fed7c71697af06b981e221ea54acb62abb6b (patch)
tree6ef4315d9fd88d1a18b775c2ed0a56661df76d90 /src/game/Creature.cpp
parent81e2f4ab89f48408479019a4dc017e638779f848 (diff)
* Tabs to spaces -- using: perl -p -i -e "s/\t/ /g" *
--HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 837a45942ab..74ebe4406c8 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -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()