diff options
author | megamage <none@none> | 2009-05-01 18:24:12 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-01 18:24:12 -0500 |
commit | c9cd3b07f9e69030a86bcd9f06055f4247732d1d (patch) | |
tree | 83b1e7ae98cd92c2edbc7ab2f6c83450199a77f8 /src/game/GameObject.cpp | |
parent | 5a667740082b8afa6af30d0f1e7082e8a3321fd3 (diff) |
*Add some InstanceData functions to better handle instance doors.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r-- | src/game/GameObject.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index d1bb0362872..f71c08b3403 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -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(); } |