From aa011a1506e997a7f185f3bcdedc87ea21ed6dad Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 21 Aug 2016 17:06:01 +0300 Subject: Hide create/leave guild menu items in tmwa. --- src/gui/popups/popupmenu.cpp | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 5eacbab01..e14b40cfc 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -3407,18 +3407,22 @@ void PopupMenu::addSocialMenu() // TRANSLATORS: create party mBrowserBox->addRow("/createparty", _("Create party")); } - const Guild *const guild = localPlayer->getGuild(); - if (guild) - { - // TRANSLATORS: popup menu item - // TRANSLATORS: leave guild - mBrowserBox->addRow("/leaveguild", _("Leave guild")); - } - else + + if (serverFeatures->haveNativeGuilds()) { - // TRANSLATORS: popup menu item - // TRANSLATORS: create guild - mBrowserBox->addRow("/createguild", _("Create guild")); + const Guild *const guild = localPlayer->getGuild(); + if (guild) + { + // TRANSLATORS: popup menu item + // TRANSLATORS: leave guild + mBrowserBox->addRow("/leaveguild", _("Leave guild")); + } + else + { + // TRANSLATORS: popup menu item + // TRANSLATORS: create guild + mBrowserBox->addRow("/createguild", _("Create guild")); + } } mBrowserBox->addRow("##3---"); } -- cgit v1.2.3-70-g09d2