summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-02 19:36:43 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-02 20:31:46 +0300
commit2596c142137a45d88a65431956436b9a5d466859 (patch)
treec6ee4f5de040329e9da2c74e9ce08b927fd04ba9 /src/localplayer.cpp
parent99771a1fb50286fdb0b511f425312503e657eddc (diff)
downloadplus-2596c142137a45d88a65431956436b9a5d466859.tar.gz
plus-2596c142137a45d88a65431956436b9a5d466859.tar.bz2
plus-2596c142137a45d88a65431956436b9a5d466859.tar.xz
plus-2596c142137a45d88a65431956436b9a5d466859.zip
Add new move to target mode for archers.
In this mode player not selecting closer targets.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 28ffc4cf5..8ab10b6da 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1764,6 +1764,7 @@ void LocalPlayer::moveToTarget(unsigned int dist)
dist = 7;
break;
case 6:
+ case 7:
dist = mAttackRange;
if (dist == 1)
dist = 2;
@@ -2946,7 +2947,7 @@ void LocalPlayer::tryMagic(std::string spell, int baseMagic,
void LocalPlayer::changeMoveToTargetType()
{
mMoveToTargetType++;
- if (mMoveToTargetType > 6)
+ if (mMoveToTargetType > 7)
mMoveToTargetType = 0;
config.setValue("moveToTargetType", mMoveToTargetType);