summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-08 18:43:49 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-08 18:43:49 +0300
commit0c1c6b5df196443b18e9e0ef2e9ef3de350a7234 (patch)
treee3f8ff1f0a844fca28c6ddc4af919880cbc2d5ac /src/gui/popups
parent4f96bf265375b7ca580f072f5a25c8b4097fb04a (diff)
downloadplus-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')
-rw-r--r--src/gui/popups/popupmenu.cpp12
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)