]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add doubleclick check outside of panels (do nothing)
authorFruitieX <rasse@rasse-lappy.localdomain>
Fri, 11 Jun 2010 15:43:43 +0000 (18:43 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Fri, 11 Jun 2010 15:43:43 +0000 (18:43 +0300)
qcsrc/client/hud.qc

index bc8fe15f6f3734538a2d2ebe304561eb69a894ab..126412380017b1495beef3df034a52abd056f90d 100644 (file)
@@ -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;