summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-28 01:27:57 +0000
committerIra Rice <irarice@gmail.com>2008-10-28 01:27:57 +0000
commit89d67a3c0f222529e61207891ae320a5a5babcdf (patch)
tree7e7615e72848a49c1ddcd6153857cebbc7320b15 /src/gui/viewport.cpp
parent9cd73fb8c9d4890336d0d0ccf290d45084155c2d (diff)
downloadmana-89d67a3c0f222529e61207891ae320a5a5babcdf.tar.gz
mana-89d67a3c0f222529e61207891ae320a5a5babcdf.tar.bz2
mana-89d67a3c0f222529e61207891ae320a5a5babcdf.tar.xz
mana-89d67a3c0f222529e61207891ae320a5a5babcdf.zip
Fixed attacking so that it will actually continue to attack in
succession like it's intended to if it's given a true keep flag, or just do one attack if that flag isn't set. Since most people seem to prefer to continue to attack when attacking, shift will be used for when someone only wants to hit the target once.
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 ef3f0dff..6f89f639 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, true);
+ player_node->attack(being, !keyboard.isKeyActive(keyboard.KEY_TARGET));
}
else
{