From d0bc156e6f0da733457d608f9d81689324c08301 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Aug 2016 16:32:39 +0300 Subject: Remove function PlayerInfo::updateMoveAI. --- src/being/localplayer.cpp | 2 -- src/being/playerinfo.cpp | 8 -------- src/being/playerinfo.h | 2 -- 3 files changed, 12 deletions(-) diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 54865a6ae..bf50025fd 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -480,8 +480,6 @@ void LocalPlayer::nextTile(unsigned char dir A_UNUSED = 0) { Being::nextTile(); } - - PlayerInfo::updateMoveAI(); } bool LocalPlayer::pickUp(FloorItem *const item) diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index ea1ee8388..0c11b4171 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -595,14 +595,6 @@ BeingId getMercenaryId() return mMercenary ? mMercenary->id : BeingId_zero; } -void updateMoveAI() -{ - if (mMercenary && mercenaryHandler) - mercenaryHandler->moveToMaster(); - if (mHomunculus && homunculusHandler) - homunculusHandler->moveToMaster(); -} - void updateAttackAi(const BeingId targetId, const Keep keep) { diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h index 2991d0adc..e46af76a5 100644 --- a/src/being/playerinfo.h +++ b/src/being/playerinfo.h @@ -277,8 +277,6 @@ namespace PlayerInfo BeingId getElementalId(); - void updateMoveAI(); - void updateAttackAi(const BeingId targetId, const Keep keep); -- cgit v1.2.3-60-g2f50