mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
a9c0920bc6
commit
80941d23bd
@ -592,7 +592,7 @@ void HateList::SpellCast(Mob *caster, uint32 spell_id, float range, Mob* ae_cent
|
||||
struct_HateList *h = (*iterator);
|
||||
if (range > 0)
|
||||
{
|
||||
dist_targ = center->DistNoRoot(*h->entity_on_hatelist);
|
||||
dist_targ = ComparativeDistance(center->GetPosition(), h->entity_on_hatelist->GetPosition());
|
||||
if (dist_targ <= range && dist_targ >= min_range2)
|
||||
{
|
||||
id_list.push_back(h->entity_on_hatelist->GetID());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user