summaryrefslogtreecommitdiff
path: root/src/being/playerinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-28 21:53:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-28 21:53:24 +0300
commit22bb94a2587fa16d808ec966f01d07dc27d9f5d9 (patch)
treec2b6cc27c3bb420c32e2d8bacdd8f1634f85e419 /src/being/playerinfo.cpp
parent510d030cbf0cca87e81801b1f484c24e8d4b7940 (diff)
downloadmv-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.gz
mv-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.bz2
mv-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.xz
mv-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.zip
Build mercenaryhandler only if eathena enabled.
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r--src/being/playerinfo.cpp6
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)
{