From eda8a2e6bd872af5a4e53f7b517ce2a57e5db246 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Dec 2014 12:29:01 +0300 Subject: Remove "nuke" popup menu handler. --- src/gui/popups/popupmenu.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index ea0d9f617..9fed214d9 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -237,7 +237,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) // TRANSLATORS: popup menu item // TRANSLATORS: set player invisible for self by id - mBrowserBox->addRow("nuke", _("Nuke")); + mBrowserBox->addRow("/nuke 'NAME'", _("Nuke")); // TRANSLATORS: popup menu item // TRANSLATORS: move to player location mBrowserBox->addRow("move", _("Move")); @@ -981,17 +981,8 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "nuke" && being) - { - if (actorManager) - { - actorManager->addBlock(static_cast( - being->getId())); - actorManager->destroy(being); - } - } // Follow Player action - else if (link == "follow" && !mNick.empty()) + if (link == "follow" && !mNick.empty()) { if (localPlayer) localPlayer->setFollow(mNick); -- cgit v1.2.3-60-g2f50