From 8185a857a4d9152b3dda7f6b5649a27427010605 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Sep 2014 16:34:42 +0300 Subject: add server feature havePlayerStatusUpdate. --- 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(+) (limited to 'src/net') diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index d4c37927c..94af844b8 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -57,4 +57,9 @@ bool ServerFeatures::haveLangTab() const return false; } +bool ServerFeatures::havePlayerStatusUpdate() const +{ + return false; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 35c348ecd..a11e73a40 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -43,6 +43,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveServerHp() const override final; bool haveLangTab() const override final; + + bool havePlayerStatusUpdate() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index ef61bdc16..f84464b5d 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -40,6 +40,8 @@ class ServerFeatures notfinal virtual bool haveServerHp() const = 0; virtual bool haveLangTab() const = 0; + + virtual bool havePlayerStatusUpdate() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 582ae4050..28f0a3cee 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -59,4 +59,9 @@ bool ServerFeatures::haveLangTab() const return serverVersion >= 8; } +bool ServerFeatures::havePlayerStatusUpdate() const +{ + return serverVersion >= 4; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 10c6dd899..87a1b61b0 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -43,6 +43,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveServerHp() const override final; bool haveLangTab() const override final; + + bool havePlayerStatusUpdate() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2