mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
[11819] move SetActiveObjectState to WorldObject level
This commit is contained in:
parent
012be82c86
commit
df0715284f
7 changed files with 23 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue