mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 08:21:28 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
dc275b3b1e
commit
8a1e03ced4
@ -2457,7 +2457,7 @@ void Merc::CheckHateList() {
|
|||||||
if(!hate_list.IsEntOnHateList(npc)) {
|
if(!hate_list.IsEntOnHateList(npc)) {
|
||||||
float range = g->HasRole(groupMember, RolePuller) ? RuleI(Mercs, AggroRadiusPuller) : RuleI(Mercs, AggroRadius);
|
float range = g->HasRole(groupMember, RolePuller) ? RuleI(Mercs, AggroRadiusPuller) : RuleI(Mercs, AggroRadius);
|
||||||
range *= range;
|
range *= range;
|
||||||
if(npc->DistNoRootNoZ(*this) < range) {
|
if(ComparativeDistanceNoZ(m_Position, npc->GetPosition()) < range) {
|
||||||
hate_list.AddEntToHateList(npc, 1);
|
hate_list.AddEntToHateList(npc, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user