From 415d696feaa2981d555d1912f201b548c1f0ffad Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Sep 2014 18:05:48 +0300 Subject: Add server feature haveLookSelection. --- 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 da2e9c945..9cd8a5f22 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -82,4 +82,9 @@ bool ServerFeatures::haveRaceSelection() const return false; } +bool ServerFeatures::haveLookSelection() const +{ + return false; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 625655b3c..8ead8eff1 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -53,6 +53,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveIncompleteChatMessages() const override final; bool haveRaceSelection() const override final; + + bool haveLookSelection() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 3f623f1c9..553217185 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -50,6 +50,8 @@ class ServerFeatures notfinal virtual bool haveIncompleteChatMessages() const = 0; virtual bool haveRaceSelection() const = 0; + + virtual bool haveLookSelection() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 330dff083..23330a02a 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -84,4 +84,9 @@ bool ServerFeatures::haveRaceSelection() const return serverVersion >= 2; } +bool ServerFeatures::haveLookSelection() const +{ + return serverVersion >= 9; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 740d73e5b..01db18cc5 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -53,6 +53,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveIncompleteChatMessages() const override final; bool haveRaceSelection() const override final; + + bool haveLookSelection() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2