diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-22 12:50:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-22 12:50:08 +0300 |
commit | 7e44f48d83922efe4b2e5ff50813fef65c1877b1 (patch) | |
tree | 44b784a827983dd9fcc22571fbed854486fc9e8e /src/net | |
parent | 0c598c5aee973bb9ff3fd988a0263436588f532f (diff) | |
download | plus-7e44f48d83922efe4b2e5ff50813fef65c1877b1.tar.gz plus-7e44f48d83922efe4b2e5ff50813fef65c1877b1.tar.bz2 plus-7e44f48d83922efe4b2e5ff50813fef65c1877b1.tar.xz plus-7e44f48d83922efe4b2e5ff50813fef65c1877b1.zip |
Add server feature haveMovePet.
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 beb042279..be55b9147 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -210,4 +210,9 @@ bool ServerFeatures::haveTalkPet() const return serverVersion >= 5; } +bool ServerFeatures::haveMovePet() const +{ + return serverVersion >= 5; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index e738bb491..d9ee23592 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -103,6 +103,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveCart() const override final; bool haveTalkPet() const override final; + + bool haveMovePet() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 7eb3d07b2..53871105f 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -100,6 +100,8 @@ class ServerFeatures notfinal virtual bool haveCart() const = 0; virtual bool haveTalkPet() const = 0; + + virtual bool haveMovePet() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 58a62f1f6..9e68116da 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -209,4 +209,9 @@ bool ServerFeatures::haveTalkPet() const return true; } +bool ServerFeatures::haveMovePet() const +{ + return true; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index e3dba132e..48826f303 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -103,6 +103,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveCart() const override final; bool haveTalkPet() const override final; + + bool haveMovePet() const override final; }; } // namespace TmwAthena |