diff options
-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 |