diff options
author | megamage <none@none> | 2009-02-26 16:29:55 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-26 16:29:55 -0600 |
commit | ee6418d92a4cccbf63941016e7339ce557144287 (patch) | |
tree | 6e4cce4c8cfa8ae7c23506d313acd8703c786f3b /src/game/DynamicObject.cpp | |
parent | c16848a23c25124e87034fd57ded304593fe67f5 (diff) |
*Update active object code.
--HG--
branch : trunk
Diffstat (limited to 'src/game/DynamicObject.cpp')
-rw-r--r-- | src/game/DynamicObject.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/game/DynamicObject.cpp b/src/game/DynamicObject.cpp index de8d0eb2c6d..0ae3656fc9d 100644 --- a/src/game/DynamicObject.cpp +++ b/src/game/DynamicObject.cpp @@ -53,17 +53,7 @@ void DynamicObject::AddToWorld() void DynamicObject::RemoveFromWorld() { ///- Remove the dynamicObject from the accessor - if(IsInWorld()) - { - // Make sure the object is back to grid container for removal as farsight targets - // are switched to world container on creation and they are also set to active - if (isActiveObject()) - { - GetMap()->SwitchGridContainers(this, false); - setActive(false); - } - ObjectAccessor::Instance().RemoveObject(this); - } + if(IsInWorld()) ObjectAccessor::Instance().RemoveObject(this); WorldObject::RemoveFromWorld(); } |