diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-19 00:24:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-19 00:24:38 +0300 |
commit | 9b553ed2102e12dd1e523cd9d09d3913c0f09cc5 (patch) | |
tree | 9eff11dadc2a7022c07df40f55386f93b35054b7 /src | |
parent | fe2b380ffbe6070cf12ee93ac52192e210c4ca79 (diff) | |
download | plus-9b553ed2102e12dd1e523cd9d09d3913c0f09cc5.tar.gz plus-9b553ed2102e12dd1e523cd9d09d3913c0f09cc5.tar.bz2 plus-9b553ed2102e12dd1e523cd9d09d3913c0f09cc5.tar.xz plus-9b553ed2102e12dd1e523cd9d09d3913c0f09cc5.zip |
Add new mode to move to target option "(B) attack range - 1".
Diffstat (limited to 'src')
-rw-r--r-- | src/localplayer.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index ef4d24a88..52d154231 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1791,6 +1791,14 @@ void LocalPlayer::moveToTarget(int dist) dist = mAttackRange; if (dist == 1 && serverVersion < 1) dist = 2; + break; + case 8: + dist = mAttackRange - 1; + if (dist < 1) + dist = 1; + if (dist == 1 && serverVersion < 1) + dist = 2; + break; default: break; } @@ -1945,7 +1953,7 @@ std::string LocalPlayer::getCrazyMoveTypeString() } } -static const unsigned moveToTargetTypeSize = 8; +static const unsigned moveToTargetTypeSize = 9; void LocalPlayer::changeMoveToTargetType() { @@ -1963,6 +1971,7 @@ static const char *moveToTargetTypeStrings[] = N_("(7) moves to target in distance 7"), N_("(A) moves to target in attack range"), N_("(a) archer attack range"), + N_("(B) moves to target in attack range - 1"), N_("(?) move to target") }; |