From: terencehill Date: Sun, 15 Jan 2012 17:07:38 +0000 (+0100) Subject: Clear modifier keys state entering hud setup mode e.g. in the case CTRL was pressed... X-Git-Tag: xonotic-v0.6.0~78^2^2~2^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0e8f83f018fbf70cab04ed77bbf12b170d0d6e21;p=xonotic%2Fxonotic-data.pk3dir.git 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 --- 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;