Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-25 20:14:13 +0000
committerStijn Buys <ingar@osirion.org>2008-07-25 20:14:13 +0000
commitae21836b66252c2b0d49b5eeca9351cf894b4673 (patch)
tree94a40210fe63a7b6f22c96fa41feea1acdfaebb0 /src/client/input.cc
parentd460c49f9ac6e036eedc162881b6529e6a13b449 (diff)
allow mouse control when clicking on an already selected entity
Diffstat (limited to 'src/client/input.cc')
-rw-r--r--src/client/input.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/input.cc b/src/client/input.cc
index 6306fc8..29226cb 100644
--- a/src/client/input.cc
+++ b/src/client/input.cc
@@ -410,7 +410,7 @@ void key_pressed(Key *key)
} else if (core::application()->connected() && core::localcontrol()) {
- if ((key->sym() == 512 + SDL_BUTTON_LEFT) && targets::hover()) {
+ if ((key->sym() == 512 + SDL_BUTTON_LEFT) && targets::hover() && (targets::current_id() != targets::hover())) {
// hovering target selected
targets::select_target(targets::hover());