Skip to content

Commit

Permalink
Merge pull request #3418 from jaj22/fix-arty-ranging-shot
Browse files Browse the repository at this point in the history
Fix precedence error in mortar/arty support routine
  • Loading branch information
Bob-Murphy authored Oct 28, 2024
2 parents 343c1a3 + adccded commit f415b30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ while {time < _timeout} do
private _subTargets = [];

// Ranging shots
if (_mortar distance2d _targetPos - 1500 < random 1500) then {
if (_mortar distance2d _targetPos < 1500 + random 1500) then {
_subTargets pushBack [_targetPos getPos [_spreadOffset, random 360], 20];
} else {
_subTargets pushBack [_targetPos getPos [_spreadOffset*1.5, random 360], 20];
Expand Down

0 comments on commit f415b30

Please sign in to comment.