diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-25 16:44:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-25 16:48:32 +0300 |
commit | fd6f7a8fec07920c5941c5010e086f4bb449404e (patch) | |
tree | 81c28be92e47f254347943b0b54395cd7f315faf /src/touchactions.cpp | |
parent | 64dee3d773e380079f3abfd1dfaae04976de84e3 (diff) | |
download | manaplus-fd6f7a8fec07920c5941c5010e086f4bb449404e.tar.gz manaplus-fd6f7a8fec07920c5941c5010e086f4bb449404e.tar.bz2 manaplus-fd6f7a8fec07920c5941c5010e086f4bb449404e.tar.xz manaplus-fd6f7a8fec07920c5941c5010e086f4bb449404e.zip |
Add new action "stop or sit"
Diffstat (limited to 'src/touchactions.cpp')
-rw-r--r-- | src/touchactions.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/touchactions.cpp b/src/touchactions.cpp index a12f54e99..2a6fbacaa 100644 --- a/src/touchactions.cpp +++ b/src/touchactions.cpp @@ -21,10 +21,7 @@ #include "touchactions.h" #include "actionmanager.h" -#include "being.h" #include "game.h" -#include "keydata.h" -#include "localplayer.h" #include "logger.h" #include "mouseinput.h" #include "touchmanager.h" @@ -154,10 +151,5 @@ impHandler0(attackClick) impHandler0(cancelClick) { - if (player_node) - { - ActionManager::stopAttack(tempEvent); - if (!player_node->getTarget()) - ActionManager::sit(tempEvent); - } + ActionManager::stopSit(tempEvent); } |