]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_items.qc
fixes some bit tests with superweapons
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_items.qc
index 090788a6655661595118c73aa160823099ab0ca4..cce5bf8ea5c480460e5b1171705b29b74929f834 100644 (file)
@@ -939,7 +939,7 @@ void weapon_defaultspawnfunc(float wpn)
        if(!self.respawntime)
        {
                e = get_weaponinfo(wpn);
-               if(e.items == IT_SUPERWEAPON)
+               if(e.items & IT_SUPERWEAPON)
                {
                        self.respawntime = g_pickup_respawntime_superweapon;
                        self.respawntimejitter = g_pickup_respawntimejitter_superweapon;
@@ -1016,7 +1016,7 @@ void weapon_defaultspawnfunc(float wpn)
 
        e = get_weaponinfo(wpn);
 
-       if(e.items && e.items != IT_SUPERWEAPON)
+       if(e.items && !(e.items & IT_SUPERWEAPON))
        {
                for(i = 0, j = 1; i < 24; ++i, j *= 2)
                {