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 b9d349446..b3f4b7814 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -240,4 +240,9 @@ bool ServerFeatures::haveAdvancedSprites() const return serverVersion >= 7; } +bool ServerFeatures::haveExtendedRiding() const +{ + return serverVersion >= 9; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 04a8fb96c..b1fc7c74e 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -115,6 +115,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveNewGuild() const override final; bool haveAdvancedSprites() const override final; + + bool haveExtendedRiding() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 53c37602a..c03d409af 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -112,6 +112,8 @@ class ServerFeatures notfinal virtual bool haveNewGuild() const = 0; virtual bool haveAdvancedSprites() const = 0; + + virtual bool haveExtendedRiding() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 17418268b..566bcc983 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -239,4 +239,9 @@ bool ServerFeatures::haveAdvancedSprites() const return false; } +bool ServerFeatures::haveExtendedRiding() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 24dd88a99..33eb1457d 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -115,6 +115,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveNewGuild() const override final; bool haveAdvancedSprites() const override final; + + bool haveExtendedRiding() const override final; }; } // namespace TmwAthena |