mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-11 00:02:12 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
1 parent
a9c0920bc6
commit
80941d23bd
1 file changed
+1
-1
+1
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user