From ae21836b66252c2b0d49b5eeca9351cf894b4673 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 25 Jul 2008 20:14:13 +0000 Subject: allow mouse control when clicking on an already selected entity --- src/client/input.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/input.cc') 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()); -- cgit v1.2.3