From 2e64d3f76e9ad4233f2dd7e95625a73660c2f116 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 Mar 2015 15:43:15 +0300 Subject: Add server feature haveExpPacket. --- src/net/eathena/serverfeatures.cpp | 5 +++++ src/net/eathena/serverfeatures.h | 2 ++ src/net/serverfeatures.h | 2 ++ src/net/tmwa/serverfeatures.cpp | 5 +++++ src/net/tmwa/serverfeatures.h | 2 ++ 5 files changed, 16 insertions(+) diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 7689ebc2b..c4e53dd42 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -220,4 +220,9 @@ bool ServerFeatures::haveServerWarpNames() const return serverVersion == 0; } +bool ServerFeatures::haveExpPacket() const +{ + return true; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index eff1cc439..a60c67ee5 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -107,6 +107,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveMovePet() const override final; bool haveServerWarpNames() const override final; + + bool haveExpPacket() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index bc860e233..1ae9a2933 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -104,6 +104,8 @@ class ServerFeatures notfinal virtual bool haveMovePet() const = 0; virtual bool haveServerWarpNames() const = 0; + + virtual bool haveExpPacket() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index be0b5ff59..4c57c7d1e 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -219,4 +219,9 @@ bool ServerFeatures::haveServerWarpNames() const return false; } +bool ServerFeatures::haveExpPacket() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index a570b1a52..f30cdbd20 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -107,6 +107,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveMovePet() const override final; bool haveServerWarpNames() const override final; + + bool haveExpPacket() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2