From 917235b0e5ffd8e8e7ec32ea65ca537f0217b954 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Jun 2017 21:57:15 +0300 Subject: Add chat command for feed pet. --- src/gui/popups/popupmenu.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gui') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 1281a8d2c..866b8b3bd 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -377,7 +377,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) { // TRANSLATORS: popup menu item // TRANSLATORS: feed pet - mBrowserBox->addRow("pet feed", _("Feed")); + mBrowserBox->addRow("/petfeed", _("Feed")); // TRANSLATORS: popup menu item // TRANSLATORS: pet drop loot mBrowserBox->addRow("pet drop loot", _("Drop loot")); @@ -1302,10 +1302,6 @@ void PopupMenu::handleLink(const std::string &link, showCraftPopup(); return; } - else if (link == "pet feed") - { - petHandler->feed(); - } else if (link == "pet drop loot") { petHandler->dropLoot(); -- cgit v1.2.3-70-g09d2