diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-22 22:09:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-22 22:09:02 +0300 |
commit | 51c9a63a660fe88cfa44d93028e6ae2448fb889d (patch) | |
tree | 8c4b1db548208737a43d52fbe28b99cb5060f017 /src/net | |
parent | bce511aaf8b9d2b5d447f67ba0c05e2f9a92b7ca (diff) | |
download | manaplus-51c9a63a660fe88cfa44d93028e6ae2448fb889d.tar.gz manaplus-51c9a63a660fe88cfa44d93028e6ae2448fb889d.tar.bz2 manaplus-51c9a63a660fe88cfa44d93028e6ae2448fb889d.tar.xz manaplus-51c9a63a660fe88cfa44d93028e6ae2448fb889d.zip |
Not allow moving from sit state if server not support it.
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 |