diff options
| author | Rat <none@none> | 2010-04-14 23:07:41 +0200 |
|---|---|---|
| committer | Rat <none@none> | 2010-04-14 23:07:41 +0200 |
| commit | 6bcb297de4d5231373a3e2bf2b40e527b91cdf46 (patch) | |
| tree | a5379b14ceb2ac9e7273143b334bfc693e2ef042 /src/game/ReactorAI.cpp | |
| parent | cc262e1cde544eb7cf643df79fa00c9f34af4785 (diff) | |
*code cleanup
*totally destroyed m_creature, use "me" for future coding
--HG--
branch : trunk
Diffstat (limited to 'src/game/ReactorAI.cpp')
| -rw-r--r-- | src/game/ReactorAI.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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(); } } } |
