From de1c28279bebbbd266e5c3020a38274e20cebb5c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Apr 2015 13:59:36 +0300 Subject: Add eathena defines into actortype enum. --- src/being/being.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index af989ff65..523d19331 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -236,9 +236,12 @@ Being::Being(const int id, setSubtype(subtype, 0); if (mType == ActorType::Player +#ifdef EATHENA_SUPPORT || mType == ActorType::Mercenary || mType == ActorType::Pet - || mType == ActorType::Homunculus) + || mType == ActorType::Homunculus +#endif + ) { mShowName = config.getBoolValue("visiblenames"); } @@ -332,6 +335,7 @@ void Being::setSubtype(const uint16_t subtype, const uint16_t look) mYDiff = mInfo->getSortOffsetY(); } } +#ifdef EATHENA_SUPPORT if (mType == ActorType::Pet) { mInfo = PETDB::get(mSubType); @@ -365,6 +369,7 @@ void Being::setSubtype(const uint16_t subtype, const uint16_t look) mYDiff = mInfo->getSortOffsetY(); } } +#endif else if (mType == ActorType::Npc) { mInfo = NPCDB::get(mSubType); @@ -612,9 +617,12 @@ void Being::takeDamage(Being *const attacker, } } else if (mType == ActorType::Monster +#ifdef EATHENA_SUPPORT || mType == ActorType::Mercenary || mType == ActorType::Pet - || mType == ActorType::Homunculus) + || mType == ActorType::Homunculus +#endif + ) { if (attacker == localPlayer) { @@ -3055,9 +3063,11 @@ std::string Being::loadComment(const std::string &name, case ActorType::Portal: case ActorType::LocalPet: case ActorType::Avatar: +#ifdef EATHENA_SUPPORT case ActorType::Mercenary: case ActorType::Homunculus: case ActorType::Pet: +#endif default: return ""; } -- cgit v1.2.3-60-g2f50