diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-08 18:50:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-08 18:50:05 +0300 |
commit | a4db54793c6aa1b3684b5b46cd95d32fdef6a965 (patch) | |
tree | 437fc0a3c1cd74723c24f2588f4502b59f6942cd /src/gui | |
parent | e194af21d615edfed4bd625b509e8cc03a788cdf (diff) | |
download | plus-a4db54793c6aa1b3684b5b46cd95d32fdef6a965.tar.gz plus-a4db54793c6aa1b3684b5b46cd95d32fdef6a965.tar.bz2 plus-a4db54793c6aa1b3684b5b46cd95d32fdef6a965.tar.xz plus-a4db54793c6aa1b3684b5b46cd95d32fdef6a965.zip |
Remove handler "add attack" from popup menu.
Diffstat (limited to 'src/gui')
-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 52e3e021a..0637cda3a 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -295,7 +295,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) // TRANSLATORS: popup menu item // TRANSLATORS: add monster to priotiry attack list _("Add to priority attack list")); - mBrowserBox->addRow("add attack", + mBrowserBox->addRow("/addattack 'NAME'", // TRANSLATORS: popup menu item // TRANSLATORS: add monster to attack list _("Add to attack list")); @@ -1107,15 +1107,6 @@ void PopupMenu::handleLink(const std::string &link, { NpcDialog::copyToClipboard(mBeingId, mX, mY); } - else if (link == "add attack" && being) - { - if (actorManager && being->getType() == ActorType::Monster) - { - actorManager->addAttackMob(being->getName()); - if (socialWindow) - socialWindow->updateAttackFilter(); - } - } else if (link == "add attack priority" && being) { if (actorManager && being->getType() == ActorType::Monster) |