summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-15 15:07:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-15 15:07:29 +0300
commit692a5d9c7cbbc2a5b2e6b53ae9bf9e301ee03754 (patch)
tree8b876d33933092c4c8860f9f61fbea67affa78a4 /src/net/eathena
parent5233a6650692e29a2b811359ea7d3f201b157c74 (diff)
downloadplus-692a5d9c7cbbc2a5b2e6b53ae9bf9e301ee03754.tar.gz
plus-692a5d9c7cbbc2a5b2e6b53ae9bf9e301ee03754.tar.bz2
plus-692a5d9c7cbbc2a5b2e6b53ae9bf9e301ee03754.tar.xz
plus-692a5d9c7cbbc2a5b2e6b53ae9bf9e301ee03754.zip
Add server feature haveCharOtherGender.
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 688e03c46..30cd90efc 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -115,6 +115,11 @@ bool ServerFeatures::haveAccountOtherGender() const
return false;
}
+bool ServerFeatures::haveCharOtherGender() const
+{
+ return serverVersion >= 10;
+}
+
bool ServerFeatures::haveMonsterAttackRange() const
{
return false;
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 0423bde57..2b6aa8245 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -66,6 +66,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveAccountOtherGender() const override final;
+ bool haveCharOtherGender() const override final;
+
bool haveMonsterAttackRange() const override final;
bool haveMonsterName() const override final;