summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-17 12:18:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-17 12:18:10 +0300
commitfa1edb2eff191d3c1ab7366d3918a57769379c57 (patch)
tree94a2d744cc07295a943bb488a4e7f2c26620e79c /src/net/eathena
parent2cdd26078b672c19ba4f440df20a59082b00a1f6 (diff)
downloadmanaverse-fa1edb2eff191d3c1ab7366d3918a57769379c57.tar.gz
manaverse-fa1edb2eff191d3c1ab7366d3918a57769379c57.tar.bz2
manaverse-fa1edb2eff191d3c1ab7366d3918a57769379c57.tar.xz
manaverse-fa1edb2eff191d3c1ab7366d3918a57769379c57.zip
Add server feature haveTalkPet.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp
index ab458d052..b9a752946 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -205,4 +205,9 @@ bool ServerFeatures::haveCart() const
return true;
}
+bool ServerFeatures::haveTalkPet() const
+{
+ return serverVersion >= 5;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 6406074ff..e738bb491 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -101,6 +101,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveVending() const override final;
bool haveCart() const override final;
+
+ bool haveTalkPet() const override final;
};
} // namespace EAthena