diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-21 17:06:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-21 17:06:01 +0300 |
commit | aa011a1506e997a7f185f3bcdedc87ea21ed6dad (patch) | |
tree | e22fa33b35aec7da4f2a25a0145d088791b6db65 | |
parent | a0b1ecd9ed18cb0246629b7e3f85fa38bfde2039 (diff) | |
download | plus-aa011a1506e997a7f185f3bcdedc87ea21ed6dad.tar.gz plus-aa011a1506e997a7f185f3bcdedc87ea21ed6dad.tar.bz2 plus-aa011a1506e997a7f185f3bcdedc87ea21ed6dad.tar.xz plus-aa011a1506e997a7f185f3bcdedc87ea21ed6dad.zip |
Hide create/leave guild menu items in tmwa.
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 26 |
1 files 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---"); } |