diff options
Diffstat (limited to 'src/game-server/mapcomposite.cpp')
-rw-r--r-- | src/game-server/mapcomposite.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/game-server/mapcomposite.cpp b/src/game-server/mapcomposite.cpp index 4a5d800..82f3cd7 100644 --- a/src/game-server/mapcomposite.cpp +++ b/src/game-server/mapcomposite.cpp @@ -26,7 +26,6 @@ #include "common/configuration.h" #include "common/resourcemanager.h" #include "game-server/character.h" -#include "game-server/combatcomponent.h" #include "game-server/mapcomposite.h" #include "game-server/map.h" #include "game-server/mapmanager.h" @@ -596,13 +595,6 @@ void MapComposite::remove(Entity *ptr) for (std::vector<Entity*>::iterator i = mContent->entities.begin(), i_end = mContent->entities.end(); i != i_end; ++i) { - if ((*i)->canFight()) - { - if ((*i)->getComponent<CombatComponent>()->getTarget() == ptr) - { - (*i)->getComponent<CombatComponent>()->clearTarget(); - } - } if (*i == ptr) { i = mContent->entities.erase(i); |