From c77ee9cf42bf572f9f22a8d88c6e19ec96c9da3d Mon Sep 17 00:00:00 2001 From: otta8634 Date: Sun, 9 Feb 2025 15:38:32 +0800 Subject: [PATCH] Show Tuba in the keybinds input list Previously it wasn't shown, despite having a unique weapon impulse alias (weapon_arc). --- qcsrc/menu/xonotic/keybinder.qc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qcsrc/menu/xonotic/keybinder.qc b/qcsrc/menu/xonotic/keybinder.qc index d1fad8239..1a44fe245 100644 --- a/qcsrc/menu/xonotic/keybinder.qc +++ b/qcsrc/menu/xonotic/keybinder.qc @@ -85,10 +85,9 @@ void KeyBinds_BuildList() KEYBIND_DEF("dropweapon" , _("drop weapon / throw nade")); #define SHOWABLE_WEAPON(w) \ - (( !(it.spawnflags & (WEP_FLAG_MUTATORBLOCKED | WEP_FLAG_HIDDEN | WEP_FLAG_SUPERWEAPON))) /* normal weapons */ \ - || ((it.spawnflags & WEP_FLAG_SUPERWEAPON) && !(it.spawnflags & WEP_FLAG_HIDDEN)) /* non-hidden superweapons */ \ - || ((it.spawnflags & WEP_FLAG_MUTATORBLOCKED) && !(it.spawnflags & WEP_FLAG_HIDDEN)) /* non-hidden mutator weapons */ \ - ) + (!(it.spawnflags & WEP_FLAG_SPECIALATTACK) && \ + !((it.spawnflags & WEP_FLAG_MUTATORBLOCKED) && (it.spawnflags & WEP_FLAG_HIDDEN)) ) + // no special attacks, and no hidden mutator-blocked weapons for (int imp = 1; imp <= 9; ++imp) { -- 2.39.5