From e62ca47b5ec9c8e630933a674c1419d911722f85 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 May 2017 00:26:25 +0300 Subject: Add chat command for move monster in attack list into one position up. --- src/gui/popups/popupmenu.cpp | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index ff2b7cfa6..cdc6e7494 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -1239,36 +1239,6 @@ void PopupMenu::handleLink(const std::string &link, dialog->setActionEventId("ok"); dialog->addActionListener(&mPlayerListener); } - else if (link == "attack moveup") - { - if (actorManager) - { - const int idx = actorManager->getAttackMobIndex(mName); - if (idx > 0) - { - std::list mobs - = actorManager->getAttackMobs(); - std::list::iterator it = mobs.begin(); - std::list::iterator it2 = it; - while (it != mobs.end()) - { - if (*it == mName) - { - -- it2; - mobs.splice(it2, mobs, it); - actorManager->setAttackMobs(mobs); - actorManager->rebuildAttackMobs(); - break; - } - ++ it; - ++ it2; - } - - if (socialWindow) - socialWindow->updateAttackFilter(); - } - } - } else if (link == "priority moveup") { if (actorManager) @@ -2146,7 +2116,7 @@ void PopupMenu::showAttackMonsterPopup(const int x, const int y, { // TRANSLATORS: popup menu item // TRANSLATORS: move attack target up - mBrowserBox->addRow("attack moveup", _("Move up")); + mBrowserBox->addRow("/moveattackup 'NAME'", _("Move up")); } if (idx + 1 < size) { -- cgit v1.2.3-70-g09d2