From e49759b8947d199829496b49f70ceebabedb97eb Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 29 Jun 2018 14:48:33 +0200 Subject: [PATCH] Reset cursor on hud editor exit --- qcsrc/client/hud/hud_config.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.39.2