From 0e8f83f018fbf70cab04ed77bbf12b170d0d6e21 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 15 Jan 2012 18:07:38 +0100 Subject: [PATCH] Clear modifier keys state entering hud setup mode e.g. in the case CTRL was pressed when quitting the previous hud setup session (it happens always quitting with the shortcut CTRL+Backspace). Otherwise you could execute many shortcuts without pressing the modifier key --- qcsrc/client/hud.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 1d0ad2200..75c4935ad 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -5093,6 +5093,8 @@ void HUD_Main (void) HUD_Panel_UpdatePosSizeForId(highlightedPanel); HUD_Panel_HlBorder(panel_bg_border + 1.5 * hlBorderSize, '0 0.5 1', 0.25 * (1 - autocvar__menu_alpha)); } + if (!hud_configure_prev) + hudShiftState = 0; } hud_configure_prev = autocvar__hud_configure; -- 2.39.2