From 0a855bdf80a0631c7d702ad7381582c119490334 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 15 Dec 2010 20:16:38 +0100 Subject: [PATCH] check whether stop ctrl-tab selection only at the mouse click --- qcsrc/client/hud.qc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index e7273bae1..f4ebdec55 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1514,14 +1514,14 @@ void HUD_Panel_Mouse() if(mouseClicked) { - if (tab_panel != -1) - { - //stop ctrl-tab selection - tab_panel = -1; - reset_tab_panels(); - } if(prevMouseClicked == 0) { + if (tab_panel != -1) + { + //stop ctrl-tab selection + tab_panel = -1; + reset_tab_panels(); + } HUD_Panel_Highlight(); // sets highlightedPanel, highlightedAction, panel_click_distance, panel_click_resizeorigin // and calls HUD_Panel_UpdatePosSizeForId() for the highlighted panel if (highlightedPanel != -1) -- 2.39.2