diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
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(); } |