Skip to content

Commit

Permalink
Fix compare warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed May 7, 2020
1 parent 4149141 commit 561cd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiplay/skirmish/cobra_includes/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function eventAttacked(victim, attacker)
if ((subPersonalities[personality].resPath === "offensive") || (random(100) < 33))
{
var unit = units[i];
if (unit !== null && attacker !== null && distBetweenTwoPoints(unit.x, unit.y, attacker.x, attacker.y) < (GROUP_SCAN_RADIUS + 4))
if (unit !== null && distBetweenTwoPoints(unit.x, unit.y, attacker.x, attacker.y) < (GROUP_SCAN_RADIUS + 4))
{
orderDroidObj(unit, DORDER_ATTACK, attacker);
}
Expand Down

0 comments on commit 561cd93

Please sign in to comment.