summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-22 12:50:08 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-22 12:50:08 +0300
commit7e44f48d83922efe4b2e5ff50813fef65c1877b1 (patch)
tree44b784a827983dd9fcc22571fbed854486fc9e8e /src/net
parent0c598c5aee973bb9ff3fd988a0263436588f532f (diff)
downloadmanaverse-7e44f48d83922efe4b2e5ff50813fef65c1877b1.tar.gz
manaverse-7e44f48d83922efe4b2e5ff50813fef65c1877b1.tar.bz2
manaverse-7e44f48d83922efe4b2e5ff50813fef65c1877b1.tar.xz
manaverse-7e44f48d83922efe4b2e5ff50813fef65c1877b1.zip
Add server feature haveMovePet.
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 beb042279..be55b9147 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -210,4 +210,9 @@ bool ServerFeatures::haveTalkPet() const
return serverVersion >= 5;
}
+bool ServerFeatures::haveMovePet() const
+{
+ return serverVersion >= 5;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index e738bb491..d9ee23592 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -103,6 +103,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveCart() const override final;
bool haveTalkPet() const override final;
+
+ bool haveMovePet() const override final;
};
} // namespace EAthena
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index 7eb3d07b2..53871105f 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -100,6 +100,8 @@ class ServerFeatures notfinal
virtual bool haveCart() const = 0;
virtual bool haveTalkPet() const = 0;
+
+ virtual bool haveMovePet() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index 58a62f1f6..9e68116da 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -209,4 +209,9 @@ bool ServerFeatures::haveTalkPet() const
return true;
}
+bool ServerFeatures::haveMovePet() const
+{
+ return true;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index e3dba132e..48826f303 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -103,6 +103,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveCart() const override final;
bool haveTalkPet() const override final;
+
+ bool haveMovePet() const override final;
};
} // namespace TmwAthena