From: FruitieX Date: Fri, 11 Jun 2010 15:43:43 +0000 (+0300) Subject: add doubleclick check outside of panels (do nothing) X-Git-Tag: xonotic-v0.1.0preview~541^2~62^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6cd075c434f7f4864c195d9e8ee5664c828a9cd5;p=xonotic%2Fxonotic-data.pk3dir.git add doubleclick check outside of panels (do nothing) --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index bc8fe15f6..126412380 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1299,7 +1299,7 @@ void HUD_Panel_Mouse() } // doubleclick check - if(time - prevMouseClickedTime < 0.4 && prevMouseClicked == 0 && prevMouseClickedPos == mousepos) + if(time - prevMouseClickedTime < 0.4 && prevMouseClicked == 0 && prevMouseClickedPos == mousepos && highlightedPanel >= 0) { mouseClicked = 0; // to prevent spam, I guess. disable_menu_alphacheck = 2;