[svn] * Allow WorldObjects to keep the grid active, and prevent it from being unloaded. This can be done through calling WorldObject::setActive(bool) from the scripting library. Note that entire instances are still unloaded if no player is present on that map to save resources. This behavior can be changed if the need arises.
--HG-- branch : trunk
This commit is contained in:
1 parent
0e18e4330c
commit
e72a13c3dd
13 files changed
+97
-29
No files matched your search
+2
-2
@@ -9826,7 +9826,7 @@ uint32 Unit::GetCreatePowers( Powers power ) const
|
||||
|
||||
void Unit::AddToWorld()
|
||||
{
|
||||
Object::AddToWorld();
|
||||
WorldObject::AddToWorld();
|
||||
}
|
||||
|
||||
void Unit::RemoveFromWorld()
|
||||
@@ -9837,7 +9837,7 @@ void Unit::RemoveFromWorld()
|
||||
RemoveNotOwnSingleTargetAuras();
|
||||
}
|
||||
|
||||
Object::RemoveFromWorld();
|
||||
WorldObject::RemoveFromWorld();
|
||||
}
|
||||
|
||||
void Unit::CleanupsBeforeDelete()
|
||||
|
||||
Reference in new issue
Block a user