]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Always hide Pressed Keys panel when observing, it doesn't show any pressed key anyway
authorterencehill <piuntn@gmail.com>
Thu, 13 Feb 2020 15:47:10 +0000 (16:47 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 13 Feb 2020 15:47:10 +0000 (16:47 +0100)
qcsrc/client/hud/panel/pressedkeys.qc

index 0bf9b8dd0543c6f0cb1a59cb10592baccc093a4d..3c87a1c1d58ebd259491f3988d6d6a92b5d0386d 100644 (file)
@@ -10,7 +10,7 @@ void HUD_PressedKeys()
 {
        if(!autocvar__hud_configure)
        {
-               if(!autocvar_hud_panel_pressedkeys) return;
+               if(!autocvar_hud_panel_pressedkeys || spectatee_status < 0) return;
                if(spectatee_status <= 0 && autocvar_hud_panel_pressedkeys < 2) return;
        }