diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-28 18:48:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-28 18:48:09 +0300 |
commit | 36f19b67df5ba7b00e91d9a234088f276b8bf513 (patch) | |
tree | e6bcba65ee03e34bcb0b7566090e17798cf182ce /src/localplayer.cpp | |
parent | 39c0baaad44c49c41ac9311bcf39c2844a49e921 (diff) | |
download | ManaVerse-36f19b67df5ba7b00e91d9a234088f276b8bf513.tar.gz ManaVerse-36f19b67df5ba7b00e91d9a234088f276b8bf513.tar.bz2 ManaVerse-36f19b67df5ba7b00e91d9a234088f276b8bf513.tar.xz ManaVerse-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.cpp | 5 |
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); |