From: terencehill Date: Sat, 9 Oct 2010 20:40:29 +0000 (+0200) Subject: Hide the HUD editor cursor if a menu dialog is open X-Git-Tag: xonotic-v0.1.0preview~267^2~15 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b98eb84aaaa8985a6a41391a0634ef75d86ec92a;p=xonotic%2Fxonotic-data.pk3dir.git Hide the HUD editor cursor if a menu dialog is open --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index eae1b1252..79039c2d4 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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;