mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-10 06:42:21 +00:00
Remove unnecessary code, expression is aways false.
CheckTeamDamage() always returns false, so the condition always evaluates to false.
This commit is contained in:
parent
efd9cd3de5
commit
3b55fc311a
1 changed files with 0 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue