diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 16:44:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 16:44:21 +0300 |
commit | 4d54d36ed8e4bcc34e5b9f90e2126fadb490c34f (patch) | |
tree | 3bea875b8d320d8ba633eefa2482dfc6f3fa631b /src/net | |
parent | 8185a857a4d9152b3dda7f6b5649a27427010605 (diff) | |
download | manaverse-4d54d36ed8e4bcc34e5b9f90e2126fadb490c34f.tar.gz manaverse-4d54d36ed8e4bcc34e5b9f90e2126fadb490c34f.tar.bz2 manaverse-4d54d36ed8e4bcc34e5b9f90e2126fadb490c34f.tar.xz manaverse-4d54d36ed8e4bcc34e5b9f90e2126fadb490c34f.zip |
Add server feature haveBrokenPlayerAttackDistance.
Diffstat (limited to 'src/net')
-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 94af844b8..f724d663a 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -62,4 +62,9 @@ bool ServerFeatures::havePlayerStatusUpdate() const return false; } +bool ServerFeatures::haveBrokenPlayerAttackDistance() const +{ + return false; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index a11e73a40..fcd4cc97a 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -45,6 +45,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveLangTab() const override final; bool havePlayerStatusUpdate() const override final; + + bool haveBrokenPlayerAttackDistance() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index f84464b5d..b3407d2b0 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -42,6 +42,8 @@ class ServerFeatures notfinal virtual bool haveLangTab() const = 0; virtual bool havePlayerStatusUpdate() const = 0; + + virtual bool haveBrokenPlayerAttackDistance() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 28f0a3cee..86f679ae9 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -64,4 +64,9 @@ bool ServerFeatures::havePlayerStatusUpdate() const return serverVersion >= 4; } +bool ServerFeatures::haveBrokenPlayerAttackDistance() const +{ + return serverVersion < 1; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 87a1b61b0..8bf7288b3 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -45,6 +45,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveLangTab() const override final; bool havePlayerStatusUpdate() const override final; + + bool haveBrokenPlayerAttackDistance() const override final; }; } // namespace TmwAthena |