mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 22:51:30 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
5926c993be
commit
72bad478d6
@ -1219,7 +1219,7 @@ void NPC::RangedAttack(Mob* other)
|
|||||||
min_range = static_cast<float>(sa_min_range);
|
min_range = static_cast<float>(sa_min_range);
|
||||||
|
|
||||||
max_range *= max_range;
|
max_range *= max_range;
|
||||||
if(DistNoRoot(*other) > max_range)
|
if(ComparativeDistance(m_Position, other->GetPosition()) > max_range)
|
||||||
return;
|
return;
|
||||||
else if(DistNoRoot(*other) < (min_range * min_range))
|
else if(DistNoRoot(*other) < (min_range * min_range))
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user