]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove dead code
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 26 Oct 2015 01:04:37 +0000 (12:04 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 26 Oct 2015 01:04:37 +0000 (12:04 +1100)
qcsrc/server/t_items.qc

index 832290f845633cffa8b7d999d65adf2a82c42620..77e3cfae0a9f81e1d0a274ad225b2234a36904b8 100644 (file)
@@ -1037,17 +1037,6 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default
                this.event_damage = Item_Damage;
 
                if(this.strength_finished || this.invincible_finished || this.superweapons_finished)
-               /*
-               if(this.items == 0)
-               if(!(this.weapons & ~WEPSET_SUPERWEAPONS)) // only superweapons
-               if(this.ammo_nails == 0)
-               if(this.ammo_cells == 0)
-               if(this.ammo_rockets == 0)
-               if(this.ammo_shells == 0)
-               if(this.ammo_fuel == 0)
-               if(this.health == 0)
-               if(this.armorvalue == 0)
-               */
                {
                        // if item is worthless after a timer, have it expire then
                        this.nextthink = max(this.strength_finished, this.invincible_finished, this.superweapons_finished);