summaryrefslogtreecommitdiff
path: root/src/touchactions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-25 16:44:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-25 16:48:32 +0300
commitfd6f7a8fec07920c5941c5010e086f4bb449404e (patch)
tree81c28be92e47f254347943b0b54395cd7f315faf /src/touchactions.cpp
parent64dee3d773e380079f3abfd1dfaae04976de84e3 (diff)
downloadmanaverse-fd6f7a8fec07920c5941c5010e086f4bb449404e.tar.gz
manaverse-fd6f7a8fec07920c5941c5010e086f4bb449404e.tar.bz2
manaverse-fd6f7a8fec07920c5941c5010e086f4bb449404e.tar.xz
manaverse-fd6f7a8fec07920c5941c5010e086f4bb449404e.zip
Add new action "stop or sit"
Diffstat (limited to 'src/touchactions.cpp')
-rw-r--r--src/touchactions.cpp10
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);
}