diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-05-07 14:50:46 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-05-07 14:50:46 -0400 |
commit | 0e76874a58e1d5d7065077b33b26312f2d873aea (patch) | |
tree | 6c5cb50e0c79d364f1c6154212a3cd3b493acaf1 | |
parent | b6580a8e547732ec1194afe218c030b8230659e2 (diff) | |
download | mana-0e76874a58e1d5d7065077b33b26312f2d873aea.tar.gz mana-0e76874a58e1d5d7065077b33b26312f2d873aea.tar.bz2 mana-0e76874a58e1d5d7065077b33b26312f2d873aea.tar.xz mana-0e76874a58e1d5d7065077b33b26312f2d873aea.zip |
Fixes the light speed bug
-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(); } |