diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-10 01:07:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-10 01:07:30 +0300 |
commit | 8ca5407776fa9c3038b608f9caf401952c2631d6 (patch) | |
tree | 1a30526373487e4c4a18b22a965b75ca369b0fdd /src/gui | |
parent | e62ca47b5ec9c8e630933a674c1419d911722f85 (diff) | |
download | plus-8ca5407776fa9c3038b608f9caf401952c2631d6.tar.gz plus-8ca5407776fa9c3038b608f9caf401952c2631d6.tar.bz2 plus-8ca5407776fa9c3038b608f9caf401952c2631d6.tar.xz plus-8ca5407776fa9c3038b608f9caf401952c2631d6.zip |
Add chat command for move monster in attack list into one position down.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 36 |
1 files changed, 1 insertions, 35 deletions
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<std::string> mobs - = actorManager->getAttackMobs(); - std::list<std::string>::iterator it = mobs.begin(); - std::list<std::string>::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; } |