diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-17 15:49:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-17 15:49:46 +0300 |
commit | 1b69396d5f19bf0fa09eadc3962b6bc97958da5c (patch) | |
tree | b791640c3f6ed5161b6543396dfca26b5654b3ff | |
parent | 8314f36b8b941ddc0fbe0014ea8bea7ecbdc43fe (diff) | |
download | manaplus-1b69396d5f19bf0fa09eadc3962b6bc97958da5c.tar.gz manaplus-1b69396d5f19bf0fa09eadc3962b6bc97958da5c.tar.bz2 manaplus-1b69396d5f19bf0fa09eadc3962b6bc97958da5c.tar.xz manaplus-1b69396d5f19bf0fa09eadc3962b6bc97958da5c.zip |
Add eathena defines into rank enum.
-rw-r--r-- | src/enums/being/rank.h | 2 | ||||
-rw-r--r-- | src/net/beinghandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/beinghandler.h | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/enums/being/rank.h b/src/enums/being/rank.h index 7e27ba473..3d2ee065e 100644 --- a/src/enums/being/rank.h +++ b/src/enums/being/rank.h @@ -20,6 +20,7 @@ #ifndef ENUMS_BEING_RANK_H #define ENUMS_BEING_RANK_H +#ifdef EATHENA_SUPPORT namespace Rank { @@ -32,4 +33,5 @@ namespace Rank }; } // namespace Rank +#endif // EATHENA_SUPPORT #endif // ENUMS_BEING_RANK_H diff --git a/src/net/beinghandler.h b/src/net/beinghandler.h index ffbe31176..af6b05b8b 100644 --- a/src/net/beinghandler.h +++ b/src/net/beinghandler.h @@ -43,7 +43,9 @@ class BeingHandler notfinal virtual void undress(Being *const being) const = 0; +#ifdef EATHENA_SUPPORT virtual void requestRanks(const Rank::Rank rank) const = 0; +#endif }; } // namespace Net diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index 5b91c4839..7ef97647e 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -252,9 +252,11 @@ void BeingHandler::undress(Being *const being) const // being->setSprite(SPRITE_BODY, 0, "", true); } +#ifdef EATHENA_SUPPORT void BeingHandler::requestRanks(const Rank::Rank rank A_UNUSED) const { } +#endif void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) { diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h index 0fcb62872..64678939b 100644 --- a/src/net/tmwa/beinghandler.h +++ b/src/net/tmwa/beinghandler.h @@ -43,7 +43,9 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler void undress(Being *const being) const override final; +#ifdef EATHENA_SUPPORT void requestRanks(const Rank::Rank rank A_UNUSED) const override final; +#endif protected: void viewPlayerEquipment(const Being *const being); |