From e194af21d615edfed4bd625b509e8cc03a788cdf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Mar 2015 18:42:52 +0300 Subject: Remove handler "remove attack" from popup menu. --- src/gui/popups/popupmenu.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/gui') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 1420d5714..52e3e021a 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -284,7 +284,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) || actorManager->isInIgnoreAttackList(name) || actorManager->isInPriorityAttackList(name)) { - mBrowserBox->addRow("remove attack", + mBrowserBox->addRow("/removeattack 'NAME'", // TRANSLATORS: remove monster from attack list // TRANSLATORS: popup menu item _("Remove from attack list")); @@ -1107,15 +1107,6 @@ void PopupMenu::handleLink(const std::string &link, { NpcDialog::copyToClipboard(mBeingId, mX, mY); } - else if (link == "remove attack" && being) - { - if (actorManager && being->getType() == ActorType::Monster) - { - actorManager->removeAttackMob(being->getName()); - if (socialWindow) - socialWindow->updateAttackFilter(); - } - } else if (link == "add attack" && being) { if (actorManager && being->getType() == ActorType::Monster) -- cgit v1.2.3-70-g09d2