From 9be7d0ac1127477a5ff5ffb3fb3dd45487eec213 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Apr 2012 23:42:45 +0300 Subject: Move untarget and stop attack actions to actionmanager from hardcoded place. --- src/game.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index b05cd6d28..68d637829 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -862,16 +862,6 @@ void Game::handleMoveAndAttack() mLastTarget = ActorSprite::UNKNOWN; // Reset last target } } - - // Stop attacking if the right key is pressed - if (!inputManager.isActionActive(Input::KEY_ATTACK) - && !inputManager.isActionActive(Input::KEY_EMOTE)) - { - if (inputManager.isActionActive(Input::KEY_STOP_ATTACK)) - player_node->stopAttack(); - else if (inputManager.isActionActive(Input::KEY_UNTARGET)) - player_node->untarget(); - } } } -- cgit v1.2.3-60-g2f50