summaryrefslogtreecommitdiff
path: root/src/net
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
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')
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
-rw-r--r--src/net/serverfeatures.h2
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
5 files changed, 16 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;
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index c0f8fe5c8..28d464e52 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -63,6 +63,8 @@ class ServerFeatures notfinal
virtual bool haveAccountOtherGender() const = 0;
+ virtual bool haveCharOtherGender() const = 0;
+
virtual bool haveMonsterAttackRange() const = 0;
virtual bool haveMonsterName() const = 0;
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index 461c25e8d..2fb96f781 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -114,6 +114,11 @@ bool ServerFeatures::haveAccountOtherGender() const
return false;
}
+bool ServerFeatures::haveCharOtherGender() const
+{
+ return false;
+}
+
bool ServerFeatures::haveMonsterAttackRange() const
{
return tmwServerVersion >= 0x0f0513;
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index 582bea20b..20c09bc47 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/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;