summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-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 30cd90efc..53aead2e7 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -255,4 +255,9 @@ bool ServerFeatures::haveAdvancedBuySell() const
return true;
}
+bool ServerFeatures::haveSlide() const
+{
+ return serverVersion >= 10;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 2b6aa8245..980d6fa9a 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -121,6 +121,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveExtendedRiding() const override final;
bool haveAdvancedBuySell() const override final;
+
+ bool haveSlide() const override final;
};
} // namespace EAthena
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index 28d464e52..45b26cd02 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -118,6 +118,8 @@ class ServerFeatures notfinal
virtual bool haveExtendedRiding() const = 0;
virtual bool haveAdvancedBuySell() const = 0;
+
+ virtual bool haveSlide() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index 2fb96f781..78d06c523 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -254,4 +254,9 @@ bool ServerFeatures::haveAdvancedBuySell() const
return false;
}
+bool ServerFeatures::haveSlide() const
+{
+ return false;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index 20c09bc47..afddb4c13 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -121,6 +121,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveExtendedRiding() const override final;
bool haveAdvancedBuySell() const override final;
+
+ bool haveSlide() const override final;
};
} // namespace TmwAthena