summaryrefslogtreecommitdiff
path: root/src/being/localplayer.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/localplayer.cpp
parent510d030cbf0cca87e81801b1f484c24e8d4b7940 (diff)
downloadplus-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.gz
plus-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.bz2
plus-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.tar.xz
plus-22bb94a2587fa16d808ec966f01d07dc27d9f5d9.zip
Build mercenaryhandler only if eathena enabled.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp4
1 files changed, 4 insertions, 0 deletions
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)