]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/pressedkeys.qc
Remove the HUD_WriteCvars hook as it's no longer needed now. Mods using it must simpl...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / pressedkeys.qc
index 0bf9b8dd0543c6f0cb1a59cb10592baccc093a4d..73bd583bcd5b44b85d62c3dc45b6f1457c299346 100644 (file)
@@ -6,11 +6,18 @@
 
 // Pressed keys (#11)
 
+void HUD_PressedKeys_Export(int fh)
+{
+       // allow saving cvars that aesthetically change the panel into hud skin files
+       HUD_Write_Cvar("hud_panel_pressedkeys_aspect");
+       HUD_Write_Cvar("hud_panel_pressedkeys_attack");
+}
+
 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;
        }