From 6bcb297de4d5231373a3e2bf2b40e527b91cdf46 Mon Sep 17 00:00:00 2001 From: Rat Date: Wed, 14 Apr 2010 23:07:41 +0200 Subject: *code cleanup *totally destroyed m_creature, use "me" for future coding --HG-- branch : trunk --- src/game/ReactorAI.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/game/ReactorAI.cpp') diff --git a/src/game/ReactorAI.cpp b/src/game/ReactorAI.cpp index 661d9ff3cb7..fdca6314747 100644 --- a/src/game/ReactorAI.cpp +++ b/src/game/ReactorAI.cpp @@ -44,16 +44,16 @@ ReactorAI::MoveInLineOfSight(Unit *) void ReactorAI::UpdateAI(const uint32 /*time_diff*/) { - // update i_victimGuid if m_creature->getVictim() !=0 and changed + // update i_victimGuid if me->getVictim() !=0 and changed if (!UpdateVictim()) return; - if (m_creature->isAttackReady()) + if (me->isAttackReady()) { - if (m_creature->IsWithinMeleeRange(m_creature->getVictim())) + if (me->IsWithinMeleeRange(me->getVictim())) { - m_creature->AttackerStateUpdate(m_creature->getVictim()); - m_creature->resetAttackTimer(); + me->AttackerStateUpdate(me->getVictim()); + me->resetAttackTimer(); } } } -- cgit v1.2.3