Oh, yeah. This needs to be added to hate_list.cpp:
Code:
bool HateList::IsOnList(Mob* targ)
{
HateListElement *current = first;
if (first == 0) {
return false;
}
int r = ElementCount;
for (int i=0; i < r; i++) {
if (current && current->GetEnt() == targ) {
return true;
}
current = current->GetNext();
}
return false;
}
This to hate_list.h:
Code:
bool IsOnList(Mob* targ);
And this to npc.h:
Code:
bool CheckAggro(Mob* other) {return hate_list.IsOnList(other);}
Sorry 'bout that. :P