From: terencehill Date: Fri, 29 Jun 2018 12:48:33 +0000 (+0200) Subject: Reset cursor on hud editor exit X-Git-Tag: xonotic-v0.8.5~1843^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e49759b8947d199829496b49f70ceebabedb97eb;p=xonotic%2Fxonotic-data.pk3dir.git Reset cursor on hud editor exit --- diff --git a/qcsrc/client/hud/hud_config.qc b/qcsrc/client/hud/hud_config.qc index 1f180fc00..f415d7512 100644 --- a/qcsrc/client/hud/hud_config.qc +++ b/qcsrc/client/hud/hud_config.qc @@ -253,6 +253,7 @@ void HUD_Configure_Exit_Force() hud_configure_menu_open = 0; localcmd("togglemenu\n"); } + mouse_over_panel = 0; cvar_set("_hud_configure", "0"); } @@ -760,7 +761,7 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) if (bInputType == 1) return true; if (!hud_configure_menu_open) - cvar_set("_hud_configure", "0"); + HUD_Configure_Exit_Force(); } else if(nPrimary == K_TAB && hudShiftState & S_CTRL) // switch panel {