diff options
author | megamage <none@none> | 2009-05-10 14:29:28 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-10 14:29:28 -0500 |
commit | 40a8e6d3aba7410fe34c4b6b81f4036f26e0f338 (patch) | |
tree | 0fd3b174e4ca985c0a80dcd44e9f5987a0556436 /src/game/Unit.cpp | |
parent | c153f7f272d574cf72c7c96825db19973655d209 (diff) |
*Rename some script functions (no real change).
--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 6a9f122adf4..3f09eec9351 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -413,7 +413,7 @@ void Unit::resetAttackTimer(WeaponAttackType type) m_attackTimer[type] = uint32(GetAttackTime(type) * m_modAttackSpeedPct[type]); } -bool Unit::IsWithinCombatRange(Unit *obj, float dist2compare) const +bool Unit::IsWithinCombatRange(const Unit *obj, float dist2compare) const { if (!obj || !IsInMap(obj)) return false; @@ -428,7 +428,7 @@ bool Unit::IsWithinCombatRange(Unit *obj, float dist2compare) const return distsq < maxdist * maxdist; } -bool Unit::IsWithinMeleeRange(Unit *obj, float dist) const +bool Unit::IsWithinMeleeRange(const Unit *obj, float dist) const { if (!obj || !IsInMap(obj)) return false; |