View Single Post
  #2  
Old 10-24-2002, 06:45 PM
Wiz
Dragon
 
Join Date: Feb 2002
Posts: 583
Default

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
Reply With Quote