From f24ddad3fa0f843eb29a281426151cf1a5f31f4b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Sep 2012 23:47:11 +0300 Subject: add const to more classes, fix other small style issues. --- src/actionmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/actionmanager.cpp') diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index 13b9bb956..3cb49f340 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -979,10 +979,10 @@ impHandler0(attack) impHandler0(targetAttack) { - Being *target = nullptr; - if (player_node && actorSpriteManager) { + Being *target = nullptr; + const bool newTarget = !inputManager.isActionActive( Input::KEY_STOP_ATTACK); // A set target has highest priority -- cgit v1.2.3-60-g2f50