From 2216a1e5cda198bbd6d97104136054a82ff9f739 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Dec 2014 21:25:00 +0300 Subject: Remove "heal" popup menu handler. --- src/gui/popups/popupmenu.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/gui/popups') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 1ebe7b2af..e6b5aad57 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -176,7 +176,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) // TRANSLATORS: popup menu item // TRANSLATORS: heal player - mBrowserBox->addRow("heal", _("Heal")); + mBrowserBox->addRow("/heal :'BEINGID'", _("Heal")); mBrowserBox->addRow("##3---"); addPlayerRelation(name); @@ -799,7 +799,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) mBrowserBox->addRow("##3---"); // TRANSLATORS: popup menu item // TRANSLATORS: heal player - mBrowserBox->addRow("heal", _("Heal")); + mBrowserBox->addRow("/heal :'BEINGID'", _("Heal")); mBrowserBox->addRow("##3---"); addPlayerRelation(name); mBrowserBox->addRow("##3---"); @@ -979,13 +979,8 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "heal" && being && being->getType() != ActorType::Monster) - { - if (actorManager) - actorManager->heal(being); - } - else if (link == "unignore" && being && - being->getType() == ActorType::Player) + if (link == "unignore" && being && + being->getType() == ActorType::Player) { player_relations.setRelation(being->getName(), PlayerRelation::NEUTRAL); -- cgit v1.2.3-70-g09d2