diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-18 17:48:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-18 17:48:30 +0300 |
commit | d1d247016b746fcb9b1bcf080c6975e2f60cca78 (patch) | |
tree | 3fdbde26f471371238cc2cc698f5d78c69d2e6c9 /src | |
parent | 68d6ec7e0e2877874da5a25297fc7a0a6f433267 (diff) | |
download | manaverse-d1d247016b746fcb9b1bcf080c6975e2f60cca78.tar.gz manaverse-d1d247016b746fcb9b1bcf080c6975e2f60cca78.tar.bz2 manaverse-d1d247016b746fcb9b1bcf080c6975e2f60cca78.tar.xz manaverse-d1d247016b746fcb9b1bcf080c6975e2f60cca78.zip |
Add serverFeature have flag.
Diffstat (limited to 'src')
-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 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; |