diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-03 14:57:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-03 14:57:02 +0300 |
commit | 87c8c8423193109175cf8234160cd51ac561eb94 (patch) | |
tree | 9aaea2a2eedbad41d422ba6d3e7036af26784675 /src | |
parent | 238da37720dbb56a7a8c3c7f30acd8c9fbab65b2 (diff) | |
download | manaverse-87c8c8423193109175cf8234160cd51ac561eb94.tar.gz manaverse-87c8c8423193109175cf8234160cd51ac561eb94.tar.bz2 manaverse-87c8c8423193109175cf8234160cd51ac561eb94.tar.xz manaverse-87c8c8423193109175cf8234160cd51ac561eb94.zip |
Add server feature secure trades.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/serverfeatures.h | 2 | ||||
-rw-r--r-- | src/net/serverfeatures.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.h | 2 |
5 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 1423f1b9f..48d0354b3 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -265,4 +265,9 @@ bool ServerFeatures::haveExtendedDropsPosition() const return serverVersion >= 12; } +bool ServerFeatures::haveSecureTrades() const +{ + return true; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 73ca3f212..c005de64f 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -125,6 +125,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveSlide() const override final; bool haveExtendedDropsPosition() const override final; + + bool haveSecureTrades() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index a3c2e6115..cae8617e2 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -122,6 +122,8 @@ class ServerFeatures notfinal virtual bool haveSlide() const = 0; virtual bool haveExtendedDropsPosition() const = 0; + + virtual bool haveSecureTrades() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 5cfb08dbd..802427315 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -264,4 +264,9 @@ bool ServerFeatures::haveExtendedDropsPosition() const return false; } +bool ServerFeatures::haveSecureTrades() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 34ae2873f..76ecb6b0c 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -125,6 +125,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveSlide() const override final A_CONST; bool haveExtendedDropsPosition() const override final A_CONST; + + bool haveSecureTrades() const override final A_CONST; }; } // namespace TmwAthena |