aboutsummaryrefslogtreecommitdiff
path: root/src/game/ReactorAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-05 18:39:31 -0600
committermegamage <none@none>2008-12-05 18:39:31 -0600
commit3a1293ef183425fe555354c5445b43ff246d33fa (patch)
treef0ae72dfc6bed7e828a36bfee8832e60c50096b8 /src/game/ReactorAI.cpp
parentd36672cd7e4ae3d328f30c020c5421668ad4cb5e (diff)
*Update melee range calculation. By QAston.
--HG-- branch : trunk
Diffstat (limited to 'src/game/ReactorAI.cpp')
-rw-r--r--src/game/ReactorAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/ReactorAI.cpp b/src/game/ReactorAI.cpp
index 9d596751075..dd796b74f38 100644
--- a/src/game/ReactorAI.cpp
+++ b/src/game/ReactorAI.cpp
@@ -76,7 +76,7 @@ ReactorAI::UpdateAI(const uint32 /*time_diff*/)
if( i_creature.isAttackReady() )
{
- if( i_creature.IsWithinCombatDist(i_creature.getVictim(), ATTACK_DISTANCE))
+ if( i_creature.IsWithinMeleeRange(i_creature.getVictim()))
{
i_creature.AttackerStateUpdate(i_creature.getVictim());
i_creature.resetAttackTimer();