[11819] move SetActiveObjectState to WorldObject level

This commit is contained in:
SilverIce 2011-10-13 20:08:25 +03:00
parent 012be82c86
commit df0715284f
7 changed files with 23 additions and 29 deletions

View file

@ -2403,26 +2403,6 @@ void Creature::ClearTemporaryFaction()
setFaction(GetCreatureInfo()->faction_A);
}
void Creature::SetActiveObjectState( bool on )
{
if(m_isActiveObject==on)
return;
bool world = IsInWorld();
Map* map;
if(world)
{
map = GetMap();
map->Remove(this,false);
}
m_isActiveObject = on;
if(world)
map->Add(this);
}
void Creature::SendAreaSpiritHealerQueryOpcode(Player *pl)
{
uint32 next_resurrect = 0;