aboutsummaryrefslogtreecommitdiff
path: root/src/game/CreatureEventAI.cpp
diff options
context:
space:
mode:
authorXanadu <none@none>2010-03-17 17:43:28 +0100
committerXanadu <none@none>2010-03-17 17:43:28 +0100
commita73b9b0f1ec557ac3fa4acf34f774996f4aa1369 (patch)
tree54df1c32e5a2574d3833691f7dc121785257401f /src/game/CreatureEventAI.cpp
parente5cbe017f402a8e0f6feccdad42a11ff5ce06361 (diff)
Cleanup
--HG-- branch : trunk
Diffstat (limited to 'src/game/CreatureEventAI.cpp')
-rw-r--r--src/game/CreatureEventAI.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp
index 081dc776aeb..6ae5472b8d0 100644
--- a/src/game/CreatureEventAI.cpp
+++ b/src/game/CreatureEventAI.cpp
@@ -584,10 +584,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
m_creature->SendMeleeAttackStart(victim);
}
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == IDLE_MOTION_TYPE)
- {
- //m_creature->GetMotionMaster()->Clear(false);
m_creature->GetMotionMaster()->MoveChase(victim, AttackDistance, AttackAngle); // Targeted movement generator will start melee automatically, no need to send it explicitly
- }
}
}
else
@@ -601,11 +598,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
m_creature->SendMeleeAttackStop(victim);
}
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
- {
- //m_creature->StopMoving();
- //m_creature->GetMotionMaster()->Clear(false);
m_creature->GetMotionMaster()->MoveIdle();
- }
}
}
break;