summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-12 13:09:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-12 13:09:19 +0300
commitf9313f7f26efa7dbf9d5bc8036833c94b04ea08c (patch)
treef334711d1cbdbf21d5e486a3eefbe863f40dd5c5 /src/gui/popups/popupmenu.cpp
parentba66d798fe5178e7b7965b7cca1b0e351f07aa4e (diff)
downloadmanaplus-f9313f7f26efa7dbf9d5bc8036833c94b04ea08c.tar.gz
manaplus-f9313f7f26efa7dbf9d5bc8036833c94b04ea08c.tar.bz2
manaplus-f9313f7f26efa7dbf9d5bc8036833c94b04ea08c.tar.xz
manaplus-f9313f7f26efa7dbf9d5bc8036833c94b04ea08c.zip
Remove "imitation" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index bc16aee86..fabf42eb7 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -981,13 +981,8 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "imitation" && !mNick.empty())
- {
- if (localPlayer)
- localPlayer->setImitate(mNick);
- }
// Pick Up Floor Item action
- else if ((link == "pickup") && mFloorItemId)
+ if ((link == "pickup") && mFloorItemId)
{
if (localPlayer && actorManager)
{
@@ -2650,7 +2645,7 @@ void PopupMenu::addFollow()
}
// TRANSLATORS: popup menu item
// TRANSLATORS: imitate player
- mBrowserBox->addRow("imitation", _("Imitation"));
+ mBrowserBox->addRow("/imitation 'NAME'", _("Imitation"));
}
void PopupMenu::addBuySell(const Being *const being)