summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-05-07 14:50:46 -0400
committerChuck Miller <shadowmil@gmail.com>2009-05-07 14:50:46 -0400
commit0e76874a58e1d5d7065077b33b26312f2d873aea (patch)
tree6c5cb50e0c79d364f1c6154212a3cd3b493acaf1 /src/game.cpp
parentb6580a8e547732ec1194afe218c030b8230659e2 (diff)
downloadmana-0e76874a58e1d5d7065077b33b26312f2d873aea.tar.gz
mana-0e76874a58e1d5d7065077b33b26312f2d873aea.tar.bz2
mana-0e76874a58e1d5d7065077b33b26312f2d873aea.tar.xz
mana-0e76874a58e1d5d7065077b33b26312f2d873aea.zip
Fixes the light speed bug
Diffstat (limited to 'src/game.cpp')
-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();
}