diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-08 18:43:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-08 18:43:49 +0300 |
commit | 0c1c6b5df196443b18e9e0ef2e9ef3de350a7234 (patch) | |
tree | e3f8ff1f0a844fca28c6ddc4af919880cbc2d5ac /src/gui/popups/popupmenu.cpp | |
parent | 4f96bf265375b7ca580f072f5a25c8b4097fb04a (diff) | |
download | plus-0c1c6b5df196443b18e9e0ef2e9ef3de350a7234.tar.gz plus-0c1c6b5df196443b18e9e0ef2e9ef3de350a7234.tar.bz2 plus-0c1c6b5df196443b18e9e0ef2e9ef3de350a7234.tar.xz plus-0c1c6b5df196443b18e9e0ef2e9ef3de350a7234.zip |
Fix wrong checks after removing some server features.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index fc75f31ab..755dbf8da 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -265,7 +265,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) // TRANSLATORS: talk with npc mBrowserBox->addRow("/talk 'NAME'", _("Talk")); #ifdef TMWA_SUPPORT - if (Net::getNetworkType() == ServerType::EATHENA) + if (Net::getNetworkType() != ServerType::TMWATHENA) #endif { mBrowserBox->addRow("/whispertext NPC:'NAME'", @@ -1014,7 +1014,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) } addPlayerMisc(); addBuySellDefault(); - if (Net::getNetworkType() == ServerType::EATHENA) + if (Net::getNetworkType() != ServerType::TMWATHENA) addParty(wTab->getNick()); mBrowserBox->addRow("##3---"); } @@ -1138,7 +1138,7 @@ void PopupMenu::showEmoteType() // TRANSLATORS: show emotes for pet mBrowserBox->addRow("/setemotetype pet", _("Pet")); - if (Net::getNetworkType() == ServerType::EATHENA) + if (Net::getNetworkType() == ServerType::EVOL2) { // TRANSLATORS: popup menu item // TRANSLATORS: show emotes for homuncules @@ -2705,7 +2705,7 @@ void PopupMenu::addBuySell(const Being *const being) { mBrowserBox->addRow("##3---"); const bool haveVending = - (Net::getNetworkType() == ServerType::EATHENA); + (Net::getNetworkType() != ServerType::TMWATHENA); if (being->isSellShopEnabled()) { // TRANSLATORS: popup menu item @@ -3140,7 +3140,7 @@ void PopupMenu::showMuteCommands() mBrowserBox->addRow(strprintf(_("Mute %s"), mName.c_str())); if (mBeingId != BeingId_zero && - Net::getNetworkType() == ServerType::EATHENA) + Net::getNetworkType() != ServerType::TMWATHENA) { mBrowserBox->addRow("mute_+1", // TRANSLATORS: popup menu item @@ -3432,7 +3432,7 @@ void PopupMenu::addSocialMenu() mBrowserBox->addRow("/createparty", _("Create party")); } - if (Net::getNetworkType() == ServerType::EATHENA) + if (Net::getNetworkType() != ServerType::TMWATHENA) { const Guild *const guild = localPlayer->getGuild(); if (guild) |