]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset cursor on hud editor exit
authorterencehill <piuntn@gmail.com>
Fri, 29 Jun 2018 12:48:33 +0000 (14:48 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 29 Jun 2018 12:51:07 +0000 (14:51 +0200)
qcsrc/client/hud/hud_config.qc

index 1f180fc005cb853fa9eeb0b872509dbb1e631719..f415d751223a695343ac503857f204c39e755d13 100644 (file)
@@ -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
        {