*Add some InstanceData functions to better handle instance doors.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-01 18:24:12 -05:00
parent 5a66774008
commit c9cd3b07f9
5 changed files with 139 additions and 12 deletions

View File

@@ -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();
}