From 498f101d312638ec8007ea22cd35a0f84c34ef21 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Jul 2017 22:13:10 +0300 Subject: Show heal command in player menu only for legacy servers. --- src/gui/popups/popupmenu.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/gui/popups') 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---"); -- cgit v1.2.3-60-g2f50