summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-11 12:28:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-11 12:28:54 +0300
commit9ee38ba70d51a99b6e5c1cc37dcfc6ccc4f1f7de (patch)
treefbdd620c9f2ceebc95c53647b1f64158d93a9fad /src/gui
parentce441bd5539a4562da90ed5ffe80c3bb1eb4d3aa (diff)
downloadplus-9ee38ba70d51a99b6e5c1cc37dcfc6ccc4f1f7de.tar.gz
plus-9ee38ba70d51a99b6e5c1cc37dcfc6ccc4f1f7de.tar.bz2
plus-9ee38ba70d51a99b6e5c1cc37dcfc6ccc4f1f7de.tar.xz
plus-9ee38ba70d51a99b6e5c1cc37dcfc6ccc4f1f7de.zip
Remove "talk" popup menu handler.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/popupmenu.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 4e85109ca..0d917d542 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -251,7 +251,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
{
// TRANSLATORS: popup menu item
// TRANSLATORS: talk with npc
- mBrowserBox->addRow("talk", _("Talk"));
+ mBrowserBox->addRow("/talk 'NAME'", _("Talk"));
if (serverFeatures->haveNpcWhispers())
{
// TRANSLATORS: popup menu item
@@ -979,14 +979,9 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- // Talk To action
- if (link == "talk" && being && being->canTalk())
- {
- being->talkTo();
- }
// Trade action
- else if (link == "trade" && being &&
- being->getType() == ActorType::Player)
+ if (link == "trade" && being &&
+ being->getType() == ActorType::Player)
{
tradeHandler->request(being);
tradePartnerName = being->getName();