summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index d640815d..bda71dbd 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -982,7 +982,8 @@ void Game::handleInput()
}
// Stop attacking if the right key is pressed
- if (keyboard.isKeyActive(keyboard.KEY_TARGET))
+ if (!keyboard.isKeyActive(keyboard.KEY_ATTACK)
+ && keyboard.isKeyActive(keyboard.KEY_TARGET))
{
player_node->stopAttack();
}