diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-14 18:26:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-14 18:26:03 +0300 |
commit | 7450c2b0f968a5dada1222dbbc137362d331e491 (patch) | |
tree | 6d2fe0144d4168f079def1d22de735c709c3b8c7 /src/net/tmwa | |
parent | 953cc467b8a9ae97c02c9b30993bf2f420de7d2a (diff) | |
download | manaplus-7450c2b0f968a5dada1222dbbc137362d331e491.tar.gz manaplus-7450c2b0f968a5dada1222dbbc137362d331e491.tar.bz2 manaplus-7450c2b0f968a5dada1222dbbc137362d331e491.tar.xz manaplus-7450c2b0f968a5dada1222dbbc137362d331e491.zip |
Add server feature haveServerHp.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/serverfeatures.cpp | 6 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 547803354..aeb514bb1 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -23,6 +23,7 @@ #include "debug.h" extern int serverVersion; +extern int tmwServerVersion; extern Net::ServerFeatures *serverFeatures; namespace TmwAthena @@ -48,4 +49,9 @@ bool ServerFeatures::haveChangePartyLeader() const return false; } +bool ServerFeatures::haveServerHp() const +{ + return serverVersion > 0 || tmwServerVersion >= 0x0E0701; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 4fad87256..0ce0b507a 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -39,6 +39,8 @@ class ServerFeatures final : public Net::ServerFeatures bool havePartyNickInvite() const override final; bool haveChangePartyLeader() const override final; + + bool haveServerHp() const override final; }; } // namespace TmwAthena |