mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
removed usage of mob->distnoroot and switched to ComparativeDistance
This commit is contained in:
parent
e653a3943a
commit
91b2e23e56
@ -724,7 +724,7 @@ void EntityList::AESpell(Mob *caster, Mob *center, uint16 spell_id, bool affect_
|
|||||||
dist_targ = ComparativeDistance(curmob->GetPosition(), caster->GetTargetRingLocation());
|
dist_targ = ComparativeDistance(curmob->GetPosition(), caster->GetTargetRingLocation());
|
||||||
}
|
}
|
||||||
else if (center) {
|
else if (center) {
|
||||||
dist_targ = center->DistNoRoot(*curmob);
|
dist_targ = ComparativeDistance(static_cast<xyz_location>(curmob->GetPosition()), static_cast<xyz_location>(center->GetPosition()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dist_targ > dist2) //make sure they are in range
|
if (dist_targ > dist2) //make sure they are in range
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user