]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
And now properly check for menu_enabled to instantly hide the HUD cursor ONLY in...
authorterencehill <piuntn@gmail.com>
Fri, 15 Oct 2010 22:42:48 +0000 (00:42 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 15 Oct 2010 22:42:48 +0000 (00:42 +0200)
qcsrc/client/hud.qc

index a553e7802f3bc7a2bc346c401edffb91ac51992c..540a0269f34ef869c0ec8242baa49421cdee86e7 100644 (file)
@@ -1327,10 +1327,10 @@ void HUD_Panel_Mouse()
        print("Menu alpha: ", cvar_string("_menu_alpha"), "\n");
        */
 
-       // this makes instantly hide the editor cursor, it's needed in case we
-       // open the HUDExit dialog as hud_fade_alpha doesn't decrease to 0
+       // instantly hide the editor cursor if we open the HUDExit dialog
+       // as hud_fade_alpha doesn't decrease to 0 in this case
        // TODO: find a way to fade the cursor out even in this case
-       if(menu_enabled)
+       if(menu_enabled == 1 || (menu_enabled == 2 && !hud_fade_alpha))
                return;
 
        if(mouseClicked == 0 && menu_enabled != 2 && highlightedPanel >= 0) { // don't reset these variables in menu_enabled mode 2!