From 1b69396d5f19bf0fa09eadc3962b6bc97958da5c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Apr 2015 15:49:46 +0300 Subject: Add eathena defines into rank enum. --- src/enums/being/rank.h | 2 ++ src/net/beinghandler.h | 2 ++ src/net/tmwa/beinghandler.cpp | 2 ++ src/net/tmwa/beinghandler.h | 2 ++ 4 files changed, 8 insertions(+) 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); -- cgit v1.2.3-70-g09d2