summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/attrs/changedisplay.cpp2
-rw-r--r--src/gui/widgets/shoplistbox.cpp2
-rw-r--r--src/gui/widgets/tabs/chat/partytab.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/attrs/changedisplay.cpp b/src/gui/widgets/attrs/changedisplay.cpp
index fead88dcd..e1af1eb76 100644
--- a/src/gui/widgets/attrs/changedisplay.cpp
+++ b/src/gui/widgets/attrs/changedisplay.cpp
@@ -102,7 +102,7 @@ void ChangeDisplay::action(const ActionEvent &event)
const int newbase = PlayerInfo::getStatBase(mId) + cnt;
PlayerInfo::setStatBase(mId, newbase);
- if (Net::getNetworkType() == ServerType::EATHENA)
+ if (Net::getNetworkType() != ServerType::TMWATHENA)
{
playerHandler->increaseAttribute(mId, cnt);
}
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index a105c1f5a..f1e5ed32f 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -253,7 +253,7 @@ void ShopListBox::mouseReleased(MouseEvent& event)
return;
}
if (mType == ShopListBoxType::SellShop &&
- Net::getNetworkType() == ServerType::EATHENA &&
+ Net::getNetworkType() != ServerType::TMWATHENA &&
src != DragDropSource::Cart)
{
return;
diff --git a/src/gui/widgets/tabs/chat/partytab.cpp b/src/gui/widgets/tabs/chat/partytab.cpp
index c8fee32ad..366a78241 100644
--- a/src/gui/widgets/tabs/chat/partytab.cpp
+++ b/src/gui/widgets/tabs/chat/partytab.cpp
@@ -101,7 +101,7 @@ bool PartyTab::handleCommand(const std::string &restrict type,
this);
}
else if (type == "setleader" &&
- Net::getNetworkType() == ServerType::EATHENA)
+ Net::getNetworkType() != ServerType::TMWATHENA)
{
inputManager.executeChatCommand(
InputAction::COMMAND_CHANGE_PARTY_LEADER,
@@ -135,7 +135,7 @@ void PartyTab::getAutoCompleteCommands(StringVect &names) const
names.push_back("/kick ");
names.push_back("/item");
names.push_back("/exp");
- if (Net::getNetworkType() == ServerType::EATHENA)
+ if (Net::getNetworkType() != ServerType::TMWATHENA)
names.push_back("/setleader ");
}