summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 20:45:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 20:45:24 +0300
commite873e33f470ef65375a64652bc4d4dbbb0297172 (patch)
tree8dbf9dbb52ceebf3739c08516e8a0789f909c6a4 /src/net
parent2ff3df08fa993d1bf1f00f47f7cbad7b60ce3ce3 (diff)
downloadManaVerse-e873e33f470ef65375a64652bc4d4dbbb0297172.tar.gz
ManaVerse-e873e33f470ef65375a64652bc4d4dbbb0297172.tar.bz2
ManaVerse-e873e33f470ef65375a64652bc4d4dbbb0297172.tar.xz
ManaVerse-e873e33f470ef65375a64652bc4d4dbbb0297172.zip
Add server feature haveOtherGender.
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 807c2292b..9d6824ba2 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -107,4 +107,9 @@ bool ServerFeatures::haveItemColors() const
return false;
}
+bool ServerFeatures::haveOtherGender() const
+{
+ return false;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 36bd1bc4b..036d3be4b 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -63,6 +63,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMove3() const override final;
bool haveItemColors() const override final;
+
+ bool haveOtherGender() const override final;
};
} // namespace EAthena
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index b25c98573..dcd777a03 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -60,6 +60,8 @@ class ServerFeatures notfinal
virtual bool haveMove3() const = 0;
virtual bool haveItemColors() const = 0;
+
+ virtual bool haveOtherGender() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index 07b567b72..e7d35b666 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -109,4 +109,9 @@ bool ServerFeatures::haveItemColors() const
return serverVersion >= 1;
}
+bool ServerFeatures::haveOtherGender() const
+{
+ return serverVersion >= 5;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index 4307dc002..2af67f255 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -63,6 +63,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMove3() const override final;
bool haveItemColors() const override final;
+
+ bool haveOtherGender() const override final;
};
} // namespace TmwAthena