From fd6f7a8fec07920c5941c5010e086f4bb449404e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 25 Dec 2012 16:44:35 +0300 Subject: Add new action "stop or sit" --- src/touchactions.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/touchactions.cpp') 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); } -- cgit v1.2.3-60-g2f50