From 22bb94a2587fa16d808ec966f01d07dc27d9f5d9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Feb 2015 21:53:24 +0300 Subject: Build mercenaryhandler only if eathena enabled. --- src/being/localplayer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/being/localplayer.cpp') diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 79f68dfbe..cd9b642f0 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -466,7 +466,9 @@ void LocalPlayer::nextTile(unsigned char dir A_UNUSED = 0) Being::nextTile(); } +#ifdef EATHENA_SUPPORT PlayerInfo::updateMoveAI(); +#endif } bool LocalPlayer::pickUp(FloorItem *const item) @@ -781,7 +783,9 @@ void LocalPlayer::attack(Being *const target, const bool keep, const int targetId = target->getId(); playerHandler->attack(targetId, mServerAttack); +#ifdef EATHENA_SUPPORT PlayerInfo::updateAttackAi(targetId, mServerAttack); +#endif } if (!keep) -- cgit v1.2.3-70-g09d2