diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-08 06:20:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-08 06:20:21 +0300 |
commit | b17247b5586f7e6a20802a0d3113b96c50810665 (patch) | |
tree | b197a098a89d01a70387cac2264882e1dd3561cd | |
parent | fc1ca42ed5a1b2d83a1dc8f94709a057b8e28e9d (diff) | |
download | mv-b17247b5586f7e6a20802a0d3113b96c50810665.tar.gz mv-b17247b5586f7e6a20802a0d3113b96c50810665.tar.bz2 mv-b17247b5586f7e6a20802a0d3113b96c50810665.tar.xz mv-b17247b5586f7e6a20802a0d3113b96c50810665.zip |
Add server feature for check is pincode supported.
-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 e5d987b4a..a5f68a9cb 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -150,4 +150,9 @@ bool ServerFeatures::haveKillerId() const return serverVersion >= 14; } +bool ServerFeatures::havePincode() const +{ + return true; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index c96e08114..d1912be01 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -79,6 +79,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveMoveWhileSit() const override final; bool haveKillerId() const override final; + + bool havePincode() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index f1c863090..defa1e086 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -81,6 +81,8 @@ class ServerFeatures notfinal virtual bool haveMoveWhileSit() const = 0; virtual bool haveKillerId() const = 0; + + virtual bool havePincode() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 23b9d6598..c6e38da8c 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -148,4 +148,9 @@ bool ServerFeatures::haveKillerId() const return false; } +bool ServerFeatures::havePincode() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index bf836251a..2f5c118af 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -79,6 +79,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveMoveWhileSit() const override final A_CONST; bool haveKillerId() const override final A_CONST; + + bool havePincode() const override final A_CONST; }; } // namespace TmwAthena |