From 4e3b36697e96e30008aea877a625d1be1e920073 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Feb 2016 02:27:18 +0300 Subject: Add server feature haveExtendedDropsPosition. --- src/net/eathena/serverfeatures.cpp | 5 +++++ src/net/eathena/serverfeatures.h | 2 ++ src/net/serverfeatures.h | 2 ++ src/net/tmwa/serverfeatures.cpp | 5 +++++ src/net/tmwa/serverfeatures.h | 2 ++ 5 files changed, 16 insertions(+) (limited to 'src') 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 -- cgit v1.2.3-60-g2f50