]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/all.qh
Impulses: register direct weapons
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / all.qh
index 962406f9bb5df05ef07a9b73efffd91b14997d70..197a6c7bbbf6cb140060e1257361b1da57a45c87 100644 (file)
@@ -155,6 +155,7 @@ STATIC_INIT(register_weapons_done)
         if ((it.spawnflags) & WEP_FLAG_SUPERWEAPON) WEPSET_SUPERWEAPONS |= set;
         it.weapon = it.m_id;
         it.weapons = set;
+        if (it == WEP_Null) continue;
         int imp = WEP_IMPULSE_BEGIN + it.m_id - 1;
         if (imp <= WEP_IMPULSE_END)
             localcmd(sprintf("alias weapon_%s \"impulse %d\"\n", it.netname, imp));