summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-27 07:19:11 +0000
committerIra Rice <irarice@gmail.com>2008-10-27 07:19:11 +0000
commitf3beda85b284e57caf6e5c685174bcb2e608d9ce (patch)
tree4bf00df16995bf6316581a7ae64e2de805dfcd08 /src/gui/viewport.cpp
parent8057f36623788c1d675e0311d98362b7d1d9f892 (diff)
downloadmana-f3beda85b284e57caf6e5c685174bcb2e608d9ce.tar.gz
mana-f3beda85b284e57caf6e5c685174bcb2e608d9ce.tar.bz2
mana-f3beda85b284e57caf6e5c685174bcb2e608d9ce.tar.xz
mana-f3beda85b284e57caf6e5c685174bcb2e608d9ce.zip
Revised code so that dead sprites are de-targeted.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index ad0c35e5..ef3f0dff 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -303,7 +303,7 @@ void Viewport::mousePressed(gcn::MouseEvent &event)
if (player_node->withinAttackRange(being) || keyboard.isKeyActive(keyboard.KEY_ATTACK))
{
player_node->setGotoTarget(being);
- player_node->attack(being, keyboard.isKeyActive(keyboard.KEY_TARGET));
+ player_node->attack(being, true);
}
else
{