summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-27 19:09:14 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-27 19:09:14 +0300
commit1f90dd8fea01c835816b3ed67f07561ae29b6ddc (patch)
treeb77b183ca64ff8161cf55a50a18a7fd3398ee656 /src/gui/popups/popupmenu.cpp
parenteb0c8a2a08a7b55eb80667b106657aeee4023dd9 (diff)
downloadmv-1f90dd8fea01c835816b3ed67f07561ae29b6ddc.tar.gz
mv-1f90dd8fea01c835816b3ed67f07561ae29b6ddc.tar.bz2
mv-1f90dd8fea01c835816b3ed67f07561ae29b6ddc.tar.xz
mv-1f90dd8fea01c835816b3ed67f07561ae29b6ddc.zip
remove "remove from attack list" action from social window popup menu.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index d2e4a100d..bc8a9fd2f 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -1264,31 +1264,6 @@ void PopupMenu::handleLink(const std::string &link,
}
}
}
- else if (link == "attack remove")
- {
- if (actorManager)
- {
- if (mNick.empty())
- {
- if (actorManager->isInAttackList(mNick))
- {
- actorManager->removeAttackMob(mNick);
- actorManager->addIgnoreAttackMob(mNick);
- }
- else
- {
- actorManager->removeAttackMob(mNick);
- actorManager->addAttackMob(mNick);
- }
- }
- else
- {
- actorManager->removeAttackMob(mNick);
- }
- if (socialWindow)
- socialWindow->updateAttackFilter();
- }
- }
else if (link == "reset yellow")
{
GameModifiers::resetModifiers();
@@ -2070,7 +2045,7 @@ void PopupMenu::showAttackMonsterPopup(const int x, const int y,
// TRANSLATORS: popup menu item
// TRANSLATORS: remove attack target
- mBrowserBox->addRow("attack remove", _("Remove"));
+ mBrowserBox->addRow("/removeattack 'NAME'", _("Remove"));
mBrowserBox->addRow("##3---");
// TRANSLATORS: popup menu item
// TRANSLATORS: close menu