diff options
author | Ira Rice <irarice@gmail.com> | 2008-10-27 06:05:18 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-10-27 06:05:18 +0000 |
commit | 8057f36623788c1d675e0311d98362b7d1d9f892 (patch) | |
tree | c928aae18bb00c9caaa20b94556e0331cb361383 /src | |
parent | dc4cfce2e367b93b9733869298a3459883df2e3d (diff) | |
download | mana-client-8057f36623788c1d675e0311d98362b7d1d9f892.tar.gz mana-client-8057f36623788c1d675e0311d98362b7d1d9f892.tar.bz2 mana-client-8057f36623788c1d675e0311d98362b7d1d9f892.tar.xz mana-client-8057f36623788c1d675e0311d98362b7d1d9f892.zip |
Changed mouse attack behavior so that if you click on a being that's too
far away and are holding down the attack key, you will attack that
being.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index b6c25dfb..ad0c35e5 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -300,7 +300,7 @@ void Viewport::mousePressed(gcn::MouseEvent &event) if (being->mAction == Being::DEAD) break; - if (player_node->withinAttackRange(being)) + if (player_node->withinAttackRange(being) || keyboard.isKeyActive(keyboard.KEY_ATTACK)) { player_node->setGotoTarget(being); player_node->attack(being, keyboard.isKeyActive(keyboard.KEY_TARGET)); |