summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-05 02:08:00 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-05 02:08:00 +0300
commit4765357f2f960dc1d063a6228173edda6b1c0507 (patch)
tree053840bc502638f2d57c254b3869e54cd533c6af /src
parent2d1f3a6cc1b382da4376ff87268ba9b84f07ba1c (diff)
downloadplus-4765357f2f960dc1d063a6228173edda6b1c0507.tar.gz
plus-4765357f2f960dc1d063a6228173edda6b1c0507.tar.bz2
plus-4765357f2f960dc1d063a6228173edda6b1c0507.tar.xz
plus-4765357f2f960dc1d063a6228173edda6b1c0507.zip
Change follow from long distance move to naviate to point.
Diffstat (limited to 'src')
-rw-r--r--src/being/localplayer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index a5aa8b5e9..e280adc42 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -2388,7 +2388,7 @@ void LocalPlayer::followMoveTo(const Being *const being,
being->mName == mPlayerFollowed)
{
mPickUpTarget = nullptr;
- setDestination(x, y);
+ navigateTo(x, y);
}
}
@@ -2406,20 +2406,20 @@ void LocalPlayer::followMoveTo(const Being *const being,
switch (settings.followMode)
{
case 0:
- setDestination(x1, y1);
+ navigateTo(x1, y1);
setNextDest(x2, y2);
break;
case 1:
if (x1 != x2 || y1 != y2)
{
- setDestination(mX + x2 - x1, mY + y2 - y1);
+ navigateTo(mX + x2 - x1, mY + y2 - y1);
setNextDest(mX + x2 - x1, mY + y2 - y1);
}
break;
case 2:
if (x1 != x2 || y1 != y2)
{
- setDestination(mX + x1 - x2, mY + y1 - y2);
+ navigateTo(mX + x1 - x2, mY + y1 - y2);
setNextDest(mX + x1 - x2, mY + y1 - y2);
}
break;