From d6b23a77f5421fd73a01a482ca67109c9666a72e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Jan 2015 12:37:56 +0300 Subject: Add server feature haveCreateCharGender. --- src/net/eathena/serverfeatures.cpp | 5 +++++ src/net/eathena/serverfeatures.h | 2 ++ src/net/serverfeatures.h | 2 ++ src/net/tmwa/serverfeatures.cpp | 5 +++++ src/net/tmwa/serverfeatures.h | 2 ++ 5 files changed, 16 insertions(+) (limited to 'src/net') 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 -- cgit v1.2.3-70-g09d2