summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-22 23:20:05 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-22 23:20:05 +0300
commit3c51082082397b0564a224214249a096750b56c6 (patch)
treefc4bb3b4d511842e2a9f0f608d51fb3539a40ae9 /src/gui/popups/popupmenu.cpp
parentf6596726b6978a7380de163740e6b65c8394ca42 (diff)
downloadmanaverse-3c51082082397b0564a224214249a096750b56c6.tar.gz
manaverse-3c51082082397b0564a224214249a096750b56c6.tar.bz2
manaverse-3c51082082397b0564a224214249a096750b56c6.tar.xz
manaverse-3c51082082397b0564a224214249a096750b56c6.zip
Add chat command for return pet to egg.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 0503e6e8f..d610182e6 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -396,13 +396,14 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
msg = info->getString(0);
if (!msg.empty())
{
- mBrowserBox->addRow("pet to egg", msg.c_str());
+ mBrowserBox->addRow("/petreturnegg", msg.c_str());
}
else
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: pet return to egg
- mBrowserBox->addRow("pet to egg", _("Return to egg"));
+ mBrowserBox->addRow("/petreturnegg",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: pet return to egg
+ _("Return to egg"));
}
mBrowserBox->addRow("##3---");
}
@@ -1302,10 +1303,6 @@ void PopupMenu::handleLink(const std::string &link,
showCraftPopup();
return;
}
- else if (link == "pet to egg")
- {
- petHandler->returnToEgg();
- }
else if (link == "pet unequip")
{
petHandler->unequip();