From: terencehill Date: Fri, 15 Oct 2010 22:42:48 +0000 (+0200) Subject: And now properly check for menu_enabled to instantly hide the HUD cursor ONLY in... X-Git-Tag: xonotic-v0.1.0preview~267^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d0642be2e21e2a63ec63437fea3f6b37e6af70d4;p=xonotic%2Fxonotic-data.pk3dir.git And now properly check for menu_enabled to instantly hide the HUD cursor ONLY in the case hud_fade_alpha cannot work (the second check simply avoids to draw the cursor if it's already faded out). This way my rude fix is complementary to the elegant FruitieX's one ;P --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index a553e7802..540a0269f 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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!