diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-28 21:53:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-28 21:53:24 +0300 |
commit | 22bb94a2587fa16d808ec966f01d07dc27d9f5d9 (patch) | |
tree | c2b6cc27c3bb420c32e2d8bacdd8f1634f85e419 /src/being/playerinfo.cpp | |
parent | 510d030cbf0cca87e81801b1f484c24e8d4b7940 (diff) | |
download | manaverse-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.gz manaverse-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.bz2 manaverse-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.xz manaverse-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.zip |
Build mercenaryhandler only if eathena enabled.
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r-- | src/being/playerinfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index a3eb640a9..dc7eb3732 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -559,25 +559,23 @@ int getMercenaryId() return mMercenary ? mMercenary->id : 0; } +#ifdef EATHENA_SUPPORT void updateMoveAI() { if (mMercenary) mercenaryHandler->moveToMaster(); -#ifdef EATHENA_SUPPORT if (mHomunculus) homunculusHandler->moveToMaster(); -#endif } void updateAttackAi(const int targetId, const bool keep) { if (mMercenary) mercenaryHandler->attack(targetId, keep); -#ifdef EATHENA_SUPPORT if (mHomunculus) homunculusHandler->attack(targetId, keep); -#endif } +#endif void setGuildPositionFlags(const GuildPositionFlags::Type pos) { |