Skip to content

Commit

Permalink
Removed redundant conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
hjerpbakk authored Jun 2, 2020
1 parent d3797ab commit 0b2c658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion REDALERT/COMBAT.CPP
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int Modify_Damage(int damage, WarheadType warhead, ArmorType armor, int distance
** If there is no raw damage value to start with, then
** there can be no modified damage either.
*/
if (Special.IsInert || !damage || warhead == WARHEAD_NONE) return(0);
if (Special.IsInert || warhead == WARHEAD_NONE) return(0);

/*
** Negative damage (i.e., heal) is always applied full strength, but only if the heal
Expand Down

0 comments on commit 0b2c658

Please sign in to comment.