summaryrefslogtreecommitdiff
path: root/src/touchactions.cpp
diff options
context:
space:
mode:
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);
}