From: TimePath Date: Mon, 26 Oct 2015 01:04:37 +0000 (+1100) Subject: Remove dead code X-Git-Tag: xonotic-v0.8.2~1760^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1542eed6609fb4782c155538d359d414498e7f6e;p=xonotic%2Fxonotic-data.pk3dir.git Remove dead code --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 832290f84..77e3cfae0 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -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);