From 5b8f189276b3883253de31d5e7bbbf897d34c85b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Feb 2015 13:13:48 +0300 Subject: Use guildmanager only if build with tmwa support. --- src/gui/popups/popupmenu.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gui/popups') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index d596f1a50..9a998214f 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -214,8 +214,10 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) } else { +#ifdef TMWA_SUPPORT if (guild2->getServerGuild() || (guildManager && guildManager->havePower())) +#endif { // TRANSLATORS: popup menu item // TRANSLATORS: invite player to guild @@ -492,8 +494,10 @@ void PopupMenu::showPlayerPopup(const std::string &nick) { if (guild2->getMember(mNick)) { +#ifdef TMWA_SUPPORT if (guild2->getServerGuild() || (guildManager && guildManager->havePower())) +#endif { // TRANSLATORS: popup menu item // TRANSLATORS: kick player from guild @@ -509,8 +513,10 @@ void PopupMenu::showPlayerPopup(const std::string &nick) } else { +#ifdef TMWA_SUPPORT if (guild2->getServerGuild() || (guildManager && guildManager->havePower())) +#endif { // TRANSLATORS: popup menu item // TRANSLATORS: invite player to guild @@ -811,8 +817,10 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) { if (guild1->getId() == guild2->getId()) { +#ifdef TMWA_SUPPORT if (guild2->getServerGuild() || (guildManager && guildManager->havePower())) +#endif { // TRANSLATORS: popup menu item // TRANSLATORS: kick player from guild @@ -830,8 +838,10 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) } else { +#ifdef TMWA_SUPPORT if (guild2->getServerGuild() || (guildManager && guildManager->havePower())) +#endif { // TRANSLATORS: popup menu item // TRANSLATORS: invite player to guild @@ -1059,8 +1069,10 @@ void PopupMenu::handleLink(const std::string &link, { if (guild->getServerGuild()) guildHandler->kick(guild->getMember(mNick), ""); +#ifdef TMWA_SUPPORT else if (guildManager) guildManager->kick(mNick); +#endif } } } -- cgit v1.2.3-70-g09d2