summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-14 02:27:18 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-14 02:27:59 +0300
commit4e3b36697e96e30008aea877a625d1be1e920073 (patch)
tree954582371c5d7e094fb78f5e3a9f6b25e39ae7c6 /src
parent97c2d1b3bb95f38f329dd36f3dd82e211da90d33 (diff)
downloadplus-4e3b36697e96e30008aea877a625d1be1e920073.tar.gz
plus-4e3b36697e96e30008aea877a625d1be1e920073.tar.bz2
plus-4e3b36697e96e30008aea877a625d1be1e920073.tar.xz
plus-4e3b36697e96e30008aea877a625d1be1e920073.zip
Add server feature haveExtendedDropsPosition.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
-rw-r--r--src/net/serverfeatures.h2
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
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