summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/tradewindow.cpp3
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
-rw-r--r--src/net/serverfeatures.h2
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
6 files changed, 2 insertions, 17 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index 6e6fe5d95..34ee3699a 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -53,6 +53,7 @@
#include "resources/item/item.h"
+#include "net/net.h"
#include "net/serverfeatures.h"
#include "net/tradehandler.h"
@@ -535,7 +536,7 @@ bool TradeWindow::checkItem(const Item *const item) const
}
return false;
}
- if (serverFeatures->haveSecureTrades() &&
+ if (Net::getNetworkType() == ServerType::EATHENA &&
item->isEquipped() == Equipped_true)
{
if (localChatTab)
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp
index 9849f0811..264c03b23 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -141,11 +141,6 @@ bool ServerFeatures::haveExtendedDropsPosition() const
return serverVersion >= 12;
}
-bool ServerFeatures::haveSecureTrades() const
-{
- return true;
-}
-
bool ServerFeatures::haveMultyStatusUp() const
{
return true;
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 308cca255..d827d372d 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -76,8 +76,6 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveExtendedDropsPosition() const override final;
- bool haveSecureTrades() const override final;
-
bool haveMultyStatusUp() const override final;
bool haveMail() const override final;
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index 3e8fdce99..1a0de93d2 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -78,8 +78,6 @@ class ServerFeatures notfinal
virtual bool haveExtendedDropsPosition() const = 0;
- virtual bool haveSecureTrades() const = 0;
-
virtual bool haveMultyStatusUp() const = 0;
virtual bool haveMail() const = 0;
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index f6fc06671..54d86af40 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -139,11 +139,6 @@ bool ServerFeatures::haveExtendedDropsPosition() const
return false;
}
-bool ServerFeatures::haveSecureTrades() const
-{
- return false;
-}
-
bool ServerFeatures::haveMultyStatusUp() const
{
return false;
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index 7f2efbf64..d609fa300 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -76,8 +76,6 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveExtendedDropsPosition() const override final A_CONST;
- bool haveSecureTrades() const override final A_CONST;
-
bool haveMultyStatusUp() const override final A_CONST;
bool haveMail() const override final A_CONST;