From 8ca5407776fa9c3038b608f9caf401952c2631d6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 May 2017 01:07:30 +0300 Subject: Add chat command for move monster in attack list into one position down. --- src/gui/popups/popupmenu.cpp | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) (limited to 'src/gui/popups') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index cdc6e7494..d1d5ddd8a 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -1270,40 +1270,6 @@ void PopupMenu::handleLink(const std::string &link, } } } - else if (link == "attack movedown") - { - if (actorManager) - { - const int idx = actorManager->getAttackMobIndex(mName); - const int size = actorManager->getAttackMobsSize(); - if (idx + 1 < size) - { - std::list mobs - = actorManager->getAttackMobs(); - std::list::iterator it = mobs.begin(); - std::list::iterator it2 = it; - while (it != mobs.end()) - { - if (*it == mName) - { - ++ it2; - if (it2 == mobs.end()) - break; - - mobs.splice(it, mobs, it2); - actorManager->setAttackMobs(mobs); - actorManager->rebuildAttackMobs(); - break; - } - ++ it; - ++ it2; - } - - if (socialWindow) - socialWindow->updateAttackFilter(); - } - } - } else if (link == "priority movedown") { if (localPlayer && actorManager) @@ -2122,7 +2088,7 @@ void PopupMenu::showAttackMonsterPopup(const int x, const int y, { // TRANSLATORS: popup menu item // TRANSLATORS: move attack target down - mBrowserBox->addRow("attack movedown", _("Move down")); + mBrowserBox->addRow("/moveattackdown 'NAME'", _("Move down")); } break; } -- cgit v1.2.3-70-g09d2