summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-21 17:06:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-21 17:06:01 +0300
commitaa011a1506e997a7f185f3bcdedc87ea21ed6dad (patch)
treee22fa33b35aec7da4f2a25a0145d088791b6db65 /src
parenta0b1ecd9ed18cb0246629b7e3f85fa38bfde2039 (diff)
downloadmanaplus-aa011a1506e997a7f185f3bcdedc87ea21ed6dad.tar.gz
manaplus-aa011a1506e997a7f185f3bcdedc87ea21ed6dad.tar.bz2
manaplus-aa011a1506e997a7f185f3bcdedc87ea21ed6dad.tar.xz
manaplus-aa011a1506e997a7f185f3bcdedc87ea21ed6dad.zip
Hide create/leave guild menu items in tmwa.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popups/popupmenu.cpp26
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---");
}