From d1d247016b746fcb9b1bcf080c6975e2f60cca78 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 Sep 2016 17:48:30 +0300 Subject: Add serverFeature have flag. --- 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 a0c9c7780..4c24e088e 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -200,6 +200,11 @@ bool ServerFeatures::haveCart() const return true; } +bool ServerFeatures::haveCards() const +{ + return true; +} + bool ServerFeatures::haveTalkPet() const { return serverVersion > 0; diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index e09cf9117..4d07c12b4 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -100,6 +100,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveCart() const override final A_CONST; + bool haveCards() const override final A_CONST; + bool haveTalkPet() const override final; bool haveMovePet() const override final; diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index aa5902bb0..8f7959470 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -97,6 +97,8 @@ class ServerFeatures notfinal virtual bool haveCart() const = 0; + virtual bool haveCards() const = 0; + virtual bool haveTalkPet() const = 0; virtual bool haveMovePet() const = 0; diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index e9615a68a..c33030ca1 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -198,6 +198,11 @@ bool ServerFeatures::haveCart() const return false; } +bool ServerFeatures::haveCards() const +{ + return false; +} + bool ServerFeatures::haveTalkPet() const { return true; diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 10f328077..7cde29acc 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -100,6 +100,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveCart() const override final A_CONST; + bool haveCards() const override final A_CONST; + bool haveTalkPet() const override final A_CONST; bool haveMovePet() const override final A_CONST; -- cgit v1.2.3-70-g09d2