diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-05 02:08:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-05 02:08:00 +0300 |
commit | 4765357f2f960dc1d063a6228173edda6b1c0507 (patch) | |
tree | 053840bc502638f2d57c254b3869e54cd533c6af /src/being | |
parent | 2d1f3a6cc1b382da4376ff87268ba9b84f07ba1c (diff) | |
download | mv-4765357f2f960dc1d063a6228173edda6b1c0507.tar.gz mv-4765357f2f960dc1d063a6228173edda6b1c0507.tar.bz2 mv-4765357f2f960dc1d063a6228173edda6b1c0507.tar.xz mv-4765357f2f960dc1d063a6228173edda6b1c0507.zip |
Change follow from long distance move to naviate to point.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/localplayer.cpp | 8 |
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; |