]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hide the HUD editor cursor if a menu dialog is open
authorterencehill <piuntn@gmail.com>
Sat, 9 Oct 2010 20:40:29 +0000 (22:40 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 9 Oct 2010 20:40:29 +0000 (22:40 +0200)
qcsrc/client/hud.qc

index eae1b125223fac6aa5c915fe7086fcae91d6ffc5..79039c2d4b8354c4501da2599110d76e7b5276fb 100644 (file)
@@ -1332,6 +1332,9 @@ void HUD_Panel_Mouse()
        print("Menu alpha: ", cvar_string("_menu_alpha"), "\n");
        */
 
+       if(menu_enabled)
+               return;
+
        if(mouseClicked == 0 && disable_menu_alphacheck != 2 && highlightedPanel >= 0) { // don't reset these variables in disable_menu_alphacheck mode 2!
                highlightedPanel = -1;
                highlightedAction = 0;