diff options
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 a830acc5f..f995f55ad 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -290,4 +290,9 @@ bool ServerFeatures::haveFamily() const return true; } +bool ServerFeatures::haveMoveWhileSit() const +{ + return serverVersion > 0; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 2753003da..3206f1adf 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -135,6 +135,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveServerPets() const override final; bool haveFamily() const override final; + + bool haveMoveWhileSit() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 8f690b3ed..eead64f72 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -132,6 +132,8 @@ class ServerFeatures notfinal virtual bool haveServerPets() const = 0; virtual bool haveFamily() const = 0; + + virtual bool haveMoveWhileSit() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index d6f785915..b533301a7 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -288,4 +288,9 @@ bool ServerFeatures::haveFamily() const return false; } +bool ServerFeatures::haveMoveWhileSit() const +{ + return true; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 9ce160ac1..747b1ab93 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -135,6 +135,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveServerPets() const override final A_CONST; bool haveFamily() const override final A_CONST; + + bool haveMoveWhileSit() const override final A_CONST; }; } // namespace TmwAthena |