diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-05 12:37:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-05 12:37:56 +0300 |
commit | d6b23a77f5421fd73a01a482ca67109c9666a72e (patch) | |
tree | 5bf34c9601224ff7d7d16ed0bb63dbd057231bc2 /src | |
parent | d852298dad5a6703b78098b08bf918f886feb98e (diff) | |
download | mv-d6b23a77f5421fd73a01a482ca67109c9666a72e.tar.gz mv-d6b23a77f5421fd73a01a482ca67109c9666a72e.tar.bz2 mv-d6b23a77f5421fd73a01a482ca67109c9666a72e.tar.xz mv-d6b23a77f5421fd73a01a482ca67109c9666a72e.zip |
Add server feature haveCreateCharGender.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/serverfeatures.h | 2 | ||||
-rw-r--r-- | src/net/serverfeatures.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.h | 2 |
5 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 1112f5c0c..8cf172d20 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -185,4 +185,9 @@ bool ServerFeatures::haveNpcWhispers() const return true; } +bool ServerFeatures::haveCreateCharGender() const +{ + return serverVersion >= 4; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 05e378b83..d91373322 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -93,6 +93,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveJoinChannel() const override final; bool haveNpcWhispers() const override final; + + bool haveCreateCharGender() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index ff79fedce..4c4d78470 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -90,6 +90,8 @@ class ServerFeatures notfinal virtual bool haveJoinChannel() const = 0; virtual bool haveNpcWhispers() const = 0; + + virtual bool haveCreateCharGender() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 6f4ff34ea..a24a9a0b9 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -184,4 +184,9 @@ bool ServerFeatures::haveNpcWhispers() const return false; } +bool ServerFeatures::haveCreateCharGender() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 5c0d1240c..9ab448104 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -93,6 +93,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveJoinChannel() const override final; bool haveNpcWhispers() const override final; + + bool haveCreateCharGender() const override final; }; } // namespace TmwAthena |