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 d24e03aab..1423f1b9f 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -260,4 +260,9 @@ bool ServerFeatures::haveSlide() const return serverVersion >= 10; } +bool ServerFeatures::haveExtendedDropsPosition() const +{ + return serverVersion >= 12; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 3b7875f37..73ca3f212 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -123,6 +123,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveAdvancedBuySell() const override final A_CONST; bool haveSlide() const override final; + + bool haveExtendedDropsPosition() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index ed4b630b5..a3c2e6115 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -120,6 +120,8 @@ class ServerFeatures notfinal virtual bool haveAdvancedBuySell() const = 0; virtual bool haveSlide() const = 0; + + virtual bool haveExtendedDropsPosition() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index a31fa40b7..5cfb08dbd 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -259,4 +259,9 @@ bool ServerFeatures::haveSlide() const return false; } +bool ServerFeatures::haveExtendedDropsPosition() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 2ba4dfe65..34ae2873f 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -123,6 +123,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveAdvancedBuySell() const override final A_CONST; bool haveSlide() const override final A_CONST; + + bool haveExtendedDropsPosition() const override final A_CONST; }; } // namespace TmwAthena |