removed usage of mob->distnoroot and switched to ComparativeDistance

This commit is contained in:
Arthur Ice 2015-01-17 15:37:24 -08:00
parent e653a3943a
commit 91b2e23e56

View File

@ -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