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