]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator_pinata.qc
gmqcc has vector bit operations now. Switch to using them.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_pinata.qc
index e32c08a2db5f44c72898596d1d65739bd18177fe..af5d4a8b137d2e983709b2af6830e8396d79299e 100644 (file)
@@ -2,7 +2,7 @@ MUTATOR_HOOKFUNCTION(pinata_PlayerDies)
 {
        float j;
        for(j = WEP_FIRST; j <= WEP_LAST; ++j)
-       if(WEPSET_CONTAINS_EW(self, j))
+       if(self.weapons & WepSet_FromWeapon(j))
        if(self.switchweapon != j)
        if(W_IsWeaponThrowable(j))
                W_ThrowNewWeapon(self, j, FALSE, self.origin + (self.mins + self.maxs) * 0.5, randomvec() * 175 + '0 0 325');