*Rename some script functions (no real change).

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-05-10 14:29:28 -05:00
1 parent c153f7f272
commit 40a8e6d3ab
31 files changed
+246 -206

No files matched your search

+2 -2
View File
@@ -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;