mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Cleanup] Remove CountTempPets() from zone/entity.cpp and zone/entity.h (#3390)
* [Cleanup] Remove CountTempPets() from zone/entity.cpp and zone/entity.h # Notes - This is unused. * Update entity.h
This commit is contained in:
@@ -4305,25 +4305,6 @@ void EntityList::DestroyTempPets(Mob *owner)
|
||||
}
|
||||
}
|
||||
|
||||
int16 EntityList::CountTempPets(Mob *owner)
|
||||
{
|
||||
int16 count = 0;
|
||||
auto it = npc_list.begin();
|
||||
while (it != npc_list.end()) {
|
||||
NPC* n = it->second;
|
||||
if (n->GetSwarmInfo()) {
|
||||
if (n->GetSwarmInfo()->owner_id == owner->GetID()) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
++it;
|
||||
}
|
||||
|
||||
owner->SetTempPetCount(count);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
void EntityList::AddTempPetsToHateList(Mob *owner, Mob* other, bool bFrenzy)
|
||||
{
|
||||
if (!other || !owner)
|
||||
|
||||
Reference in New Issue
Block a user