diff options
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 926b0e48a..4fb6c7e1d 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -427,41 +427,6 @@ impHandler0(targetAttack) return false; } -static bool setTarget(const ActorType::Type type, const bool allowSort) -{ - if (actorManager && localPlayer) - { - Being *const target = actorManager->findNearestLivingBeing( - localPlayer, 20, type, allowSort); - - if (target && target != localPlayer->getTarget()) - localPlayer->setTarget(target); - - return true; - } - return false; -} - -impHandler0(targetPlayer) -{ - return setTarget(ActorType::PLAYER, true); -} - -impHandler0(targetMonster) -{ - return setTarget(ActorType::MONSTER, true); -} - -impHandler0(targetClosestMonster) -{ - return setTarget(ActorType::MONSTER, false); -} - -impHandler0(targetNPC) -{ - return setTarget(ActorType::NPC, true); -} - impHandler0(safeVideoMode) { if (mainGraphics) |