diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-08 18:42:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-08 18:43:31 +0300 |
commit | e194af21d615edfed4bd625b509e8cc03a788cdf (patch) | |
tree | 50fb2f19ff7373618bce148e37d35cf1a587aa79 | |
parent | d1c4cb3675600137d0239ac7bdfc91062592804a (diff) | |
download | manaverse-e194af21d615edfed4bd625b509e8cc03a788cdf.tar.gz manaverse-e194af21d615edfed4bd625b509e8cc03a788cdf.tar.bz2 manaverse-e194af21d615edfed4bd625b509e8cc03a788cdf.tar.xz manaverse-e194af21d615edfed4bd625b509e8cc03a788cdf.zip |
Remove handler "remove attack" from popup menu.
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
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) |