mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 07:11:29 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
8a1e03ced4
commit
ae4e1ef0d0
@ -4098,7 +4098,7 @@ bool Merc::CheckAETaunt() {
|
|||||||
|
|
||||||
for(std::list<NPC*>::iterator itr = npc_list.begin(); itr != npc_list.end(); ++itr) {
|
for(std::list<NPC*>::iterator itr = npc_list.begin(); itr != npc_list.end(); ++itr) {
|
||||||
NPC* npc = *itr;
|
NPC* npc = *itr;
|
||||||
float dist = npc->DistNoRootNoZ(*this);
|
float dist = ComparativeDistanceNoZ(m_Position, npc->GetPosition());
|
||||||
int range = GetActSpellRange(mercSpell.spellid, spells[mercSpell.spellid].range);
|
int range = GetActSpellRange(mercSpell.spellid, spells[mercSpell.spellid].range);
|
||||||
range *= range;
|
range *= range;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user