]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/t_items.qc
Remove IT_AMMO
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / t_items.qc
index 19aa6ba54aa3136348469a5cf5912a0a077849a3..cacbfdcea855fe4bd33cf839e8011b65d5f5f0a6 100644 (file)
@@ -393,7 +393,7 @@ bool have_pickup_item(entity this)
                if(autocvar_g_pickup_items == 0)
                        return false;
                if(g_weaponarena)
                if(autocvar_g_pickup_items == 0)
                        return false;
                if(g_weaponarena)
-                       if(this.weapons || (this.items & IT_AMMO)) // no item or ammo pickups in weaponarena
+                       if(this.weapons || this.itemdef.instanceOfAmmo) // no item or ammo pickups in weaponarena
                                return false;
        }
        return true;
                                return false;
        }
        return true;