summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-19 15:44:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-19 15:44:14 +0300
commit3420babbbc6d10f1fc5be7ff7b895e618acd5f0e (patch)
tree92dc07613db98c4bd56f28aa8faffb99e0bde88f /src/net
parentcf6a135902b647b565e782e9cb9626b7ac8b361b (diff)
downloadplus-3420babbbc6d10f1fc5be7ff7b895e618acd5f0e.tar.gz
plus-3420babbbc6d10f1fc5be7ff7b895e618acd5f0e.tar.bz2
plus-3420babbbc6d10f1fc5be7ff7b895e618acd5f0e.tar.xz
plus-3420babbbc6d10f1fc5be7ff7b895e618acd5f0e.zip
Allow support for different horses riding.
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 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