mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 08:38:20 +00:00
Hate list stuff, need to make it more efficient
This commit is contained in:
@@ -2576,29 +2576,6 @@ void Merc::CheckHateList() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*std::list<tHateEntry*> their_hate_list;
|
||||
npc->GetHateList(their_hate_list);
|
||||
std::list<tHateEntry*>::iterator hateEntryIter = their_hate_list.begin();
|
||||
|
||||
while(hateEntryIter != their_hate_list.end())
|
||||
{
|
||||
tHateEntry *entry = (*hateEntryIter);
|
||||
|
||||
if(g->IsGroupMember(entry->ent)) {
|
||||
if(!hate_list.IsOnHateList(npc)) {
|
||||
float range = g->HasRole(entry->ent, RolePuller) ? RuleI(Mercs, AggroRadiusPuller) : RuleI(Mercs, AggroRadius);
|
||||
range *= range;
|
||||
if(entry->ent->DistNoRootNoZ(*this) < range) {
|
||||
hate_list.Add(entry->ent, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
hateEntryIter++;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user