diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-28 22:29:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-28 22:29:38 +0300 |
commit | ad04cbfc166ac5166d8967165bddb719a970fe5f (patch) | |
tree | c26265f82fd15291a519084ac81a1c07cbcc69ca /src/net/eathena | |
parent | 827bbb15f7a4cc5483b1d0dddb3e40fd208b8880 (diff) | |
download | manaverse-ad04cbfc166ac5166d8967165bddb719a970fe5f.tar.gz manaverse-ad04cbfc166ac5166d8967165bddb719a970fe5f.tar.bz2 manaverse-ad04cbfc166ac5166d8967165bddb719a970fe5f.tar.xz manaverse-ad04cbfc166ac5166d8967165bddb719a970fe5f.zip |
Add server feature haveNpcSex.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/serverfeatures.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 911bacbe3..596623fbb 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -165,4 +165,9 @@ bool ServerFeatures::haveMapServerVersion() const return serverVersion > 0; } +bool ServerFeatures::haveNpcGender() const +{ + return serverVersion >= 3; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 3de5c0c83..735e19913 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -85,6 +85,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveServerVersion() const override final; bool haveMapServerVersion() const override final; + + bool haveNpcGender() const override final; }; } // namespace EAthena |