mirror of
https://github.com/yquake2/rogue.git
synced 2025-02-21 11:31:27 +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 */
|
/* treat cheat/powerup savings the same as armor */
|
||||||
asave += save;
|
asave += save;
|
||||||
|
|
||||||
/* team damage avoidance */
|
|
||||||
if (!(dflags & DAMAGE_NO_PROTECTION) && CheckTeamDamage(targ, attacker))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* this option will do damage both to the armor
|
/* this option will do damage both to the armor
|
||||||
and person. originally for DPU rounds */
|
and person. originally for DPU rounds */
|
||||||
if (dflags & DAMAGE_DESTROY_ARMOR)
|
if (dflags & DAMAGE_DESTROY_ARMOR)
|
||||||
|
|
Loading…
Reference in a new issue