summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-28 18:48:09 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-28 18:48:09 +0300
commit36f19b67df5ba7b00e91d9a234088f276b8bf513 (patch)
treee6bcba65ee03e34bcb0b7566090e17798cf182ce /src/localplayer.cpp
parent39c0baaad44c49c41ac9311bcf39c2844a49e921 (diff)
downloadmanaplus-36f19b67df5ba7b00e91d9a234088f276b8bf513.tar.gz
manaplus-36f19b67df5ba7b00e91d9a234088f276b8bf513.tar.bz2
manaplus-36f19b67df5ba7b00e91d9a234088f276b8bf513.tar.xz
manaplus-36f19b67df5ba7b00e91d9a234088f276b8bf513.zip
Add untarget key. By default unassigned.
It remove targeting but not stop server side attack.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 324f3af54..721c71b1a 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1389,6 +1389,11 @@ void LocalPlayer::stopAttack()
if (mServerAttack && mAction == ATTACK)
Net::getPlayerHandler()->stopAttack();
+ untarget();
+}
+
+void LocalPlayer::untarget()
+{
if (mAction == ATTACK)
setAction(STAND);