*Add some InstanceData functions to better handle instance doors.
--HG-- branch : trunk
This commit is contained in:
1 parent
5a66774008
commit
c9cd3b07f9
5 files changed
+139
-12
No files matched your search
@@ -94,6 +94,9 @@ void GameObject::RemoveFromWorld()
|
||||
///- Remove the gameobject from the accessor
|
||||
if(IsInWorld())
|
||||
{
|
||||
if(Map *map = FindMap())
|
||||
if(map->IsDungeon() && ((InstanceMap*)map)->GetInstanceData())
|
||||
((InstanceMap*)map)->GetInstanceData()->OnObjectRemove(this);
|
||||
ObjectAccessor::Instance().RemoveObject(this);
|
||||
WorldObject::RemoveFromWorld();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user