diff options
author | megamage <none@none> | 2008-12-05 18:39:31 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-05 18:39:31 -0600 |
commit | 3a1293ef183425fe555354c5445b43ff246d33fa (patch) | |
tree | f0ae72dfc6bed7e828a36bfee8832e60c50096b8 /src/game/GuardAI.cpp | |
parent | d36672cd7e4ae3d328f30c020c5421668ad4cb5e (diff) |
*Update melee range calculation. By QAston.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GuardAI.cpp')
-rw-r--r-- | src/game/GuardAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GuardAI.cpp b/src/game/GuardAI.cpp index 8c029a5531e..806b4a1a112 100644 --- a/src/game/GuardAI.cpp +++ b/src/game/GuardAI.cpp @@ -117,7 +117,7 @@ void GuardAI::UpdateAI(const uint32 /*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(); |