summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-24 16:32:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-24 16:32:39 +0300
commitd0bc156e6f0da733457d608f9d81689324c08301 (patch)
tree42612f924db4d4c603b05e55a59bc3cd3e925367 /src
parentde73499f5ae0fa4ca0275e8c720da333e9dc635e (diff)
downloadplus-d0bc156e6f0da733457d608f9d81689324c08301.tar.gz
plus-d0bc156e6f0da733457d608f9d81689324c08301.tar.bz2
plus-d0bc156e6f0da733457d608f9d81689324c08301.tar.xz
plus-d0bc156e6f0da733457d608f9d81689324c08301.zip
Remove function PlayerInfo::updateMoveAI.
Diffstat (limited to 'src')
-rw-r--r--src/being/localplayer.cpp2
-rw-r--r--src/being/playerinfo.cpp8
-rw-r--r--src/being/playerinfo.h2
3 files changed, 0 insertions, 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);