diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-20 22:13:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-20 22:14:04 +0300 |
commit | 498f101d312638ec8007ea22cd35a0f84c34ef21 (patch) | |
tree | 695c68d190c6d30de634d91d0aa5460ad36329f1 /src/gui/popups | |
parent | 2c176c9f29375ee359eca2b204489a48c1ac9e4e (diff) | |
download | manaverse-498f101d312638ec8007ea22cd35a0f84c34ef21.tar.gz manaverse-498f101d312638ec8007ea22cd35a0f84c34ef21.tar.bz2 manaverse-498f101d312638ec8007ea22cd35a0f84c34ef21.tar.xz manaverse-498f101d312638ec8007ea22cd35a0f84c34ef21.zip |
Show heal command in player menu only for legacy servers.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index ff80ed147..3abec043c 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -239,10 +239,15 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) addGmCommands(); mBrowserBox->addSeparator("##3---"); - // TRANSLATORS: popup menu item - // TRANSLATORS: heal player - mBrowserBox->addRow("/heal :'BEINGID'", _("Heal")); - mBrowserBox->addSeparator("##3---"); +#ifdef TMWA_SUPPORT + if (Net::getNetworkType() == ServerType::TMWATHENA) + { + // TRANSLATORS: popup menu item + // TRANSLATORS: heal player + mBrowserBox->addRow("/heal :'BEINGID'", _("Heal")); + mBrowserBox->addSeparator("##3---"); + } +#endif // TMWA_SUPPORT addPlayerRelation(name); mBrowserBox->addSeparator("##3---"); |