From dbc2777989e3646dad554e16acb9c49e9b722adb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Sep 2014 20:43:05 +0300 Subject: In server features add method haveChangePartyLeader. --- 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') diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 5d5a6d588..e0f073cd2 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -42,4 +42,9 @@ bool ServerFeatures::havePartyNickInvite() const return true; } +bool ServerFeatures::haveChangePartyLeader() const +{ + return true; +} + } // EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 9bc856f1e..dbd4c756f 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -37,6 +37,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveOnlineList() const override final; bool havePartyNickInvite() const override final; + + bool haveChangePartyLeader() const override final; }; } // namespace Net diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 3f3268c3a..504a5dbae 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -34,6 +34,8 @@ class ServerFeatures notfinal virtual bool haveOnlineList() const = 0; virtual bool havePartyNickInvite() const = 0; + + virtual bool haveChangePartyLeader() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index c8c497613..4aa1bfadd 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -43,4 +43,9 @@ bool ServerFeatures::havePartyNickInvite() const return false; } +bool ServerFeatures::haveChangePartyLeader() const +{ + return false; +} + } // TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 2c846a6ce..f934c31e2 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -37,6 +37,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveOnlineList() const override final; bool havePartyNickInvite() const override final; + + bool haveChangePartyLeader() const override final; }; } // namespace Net -- cgit v1.2.3-70-g09d2