mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 09:33:36 +00:00
removed usage of mob->distnoroot and switched to ComparativeDistance
This commit is contained in:
1 parent
e653a3943a
commit
91b2e23e56
1 file changed
+1
-1
+1
-1
@@ -724,7 +724,7 @@ void EntityList::AESpell(Mob *caster, Mob *center, uint16 spell_id, bool affect_
|
||||
dist_targ = ComparativeDistance(curmob->GetPosition(), caster->GetTargetRingLocation());
|
||||
}
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user