diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-25 19:37:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-25 19:37:31 +0300 |
commit | 25bf3308cf490313b4a86b78643226f078ce4f7e (patch) | |
tree | 1276798181fb179babf42b1d5c9d7a7eb39f3157 /src/gui/popups/popupmenu.cpp | |
parent | 77392dfa39913e4d6c51934deab51088da878e7a (diff) | |
download | manaplus-25bf3308cf490313b4a86b78643226f078ce4f7e.tar.gz manaplus-25bf3308cf490313b4a86b78643226f078ce4f7e.tar.bz2 manaplus-25bf3308cf490313b4a86b78643226f078ce4f7e.tar.xz manaplus-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.cpp | 8 |
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")); + } } } |