summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-25 19:37:31 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-25 19:37:31 +0300
commit25bf3308cf490313b4a86b78643226f078ce4f7e (patch)
tree1276798181fb179babf42b1d5c9d7a7eb39f3157 /src/gui/popups/popupmenu.cpp
parent77392dfa39913e4d6c51934deab51088da878e7a (diff)
downloadplus-25bf3308cf490313b4a86b78643226f078ce4f7e.tar.gz
plus-25bf3308cf490313b4a86b78643226f078ce4f7e.tar.bz2
plus-25bf3308cf490313b4a86b78643226f078ce4f7e.tar.xz
plus-25bf3308cf490313b4a86b78643226f078ce4f7e.zip
Add chat command /gotonpc. Also add it to npc context menu.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 903720de4..cb46084d2 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -2842,6 +2842,14 @@ void PopupMenu::showNpcGMCommands()
// TRANSLATORS: popup menu item
// TRANSLATORS: kick player
mBrowserBox->addRow("/kick :'BEINGID'", _("Kick"));
+ const bool legacy = Net::getNetworkType() == ServerType::TMWATHENA;
+ if (!legacy)
+ {
+ mBrowserBox->addRow("##3---");
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: warp to npc
+ mBrowserBox->addRow("/gotonpc 'NAME'", _("Goto"));
+ }
}
}