diff options
author | megamage <none@none> | 2009-05-14 16:50:47 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-14 16:50:47 -0500 |
commit | 047cc95388a67d5f33cb86082bbef03f654acec1 (patch) | |
tree | 90547d4892aa217a58408b3353fe943dcc51bb7b /src/game/Unit.cpp | |
parent | 811eee356ddd3c0b486a828b39822daffd8ac97e (diff) |
*Add some distance check functions. By VladimirMangos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 2c1c50c20ae..e176405d043 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -3562,7 +3562,7 @@ Spell* Unit::FindCurrentSpellBySpellId(uint32 spell_id) const return NULL; } -bool Unit::isInFront(Unit const* target, float distance, float arc) const +bool Unit::isInFrontInMap(Unit const* target, float distance, float arc) const { return IsWithinDistInMap(target, distance) && HasInArc( arc, target ); } @@ -3572,7 +3572,7 @@ void Unit::SetInFront(Unit const* target) SetOrientation(GetAngle(target)); } -bool Unit::isInBack(Unit const* target, float distance, float arc) const +bool Unit::isInBackInMap(Unit const* target, float distance, float arc) const { return IsWithinDistInMap(target, distance) && !HasInArc( 2 * M_PI - arc, target ); } |