Remove unnecessary code, expression is aways false.

CheckTeamDamage() always returns false, so the condition always
evaluates to false.
This commit is contained in:
Yamagi 2020-02-08 17:07:33 +01:00
parent efd9cd3de5
commit 3b55fc311a

View file

@ -829,12 +829,6 @@ T_Damage(edict_t *targ, edict_t *inflictor, edict_t *attacker, vec3_t dir,
/* treat cheat/powerup savings the same as armor */
asave += save;
/* team damage avoidance */
if (!(dflags & DAMAGE_NO_PROTECTION) && CheckTeamDamage(targ, attacker))
{
return;
}
/* this option will do damage both to the armor
and person. originally for DPU rounds */
if (dflags & DAMAGE_DESTROY_ARMOR)