Skip to content

Commit f415b30

Browse files
authored
Merge pull request #3418 from jaj22/fix-arty-ranging-shot
Fix precedence error in mortar/arty support routine
2 parents 343c1a3 + adccded commit f415b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

A3A/addons/core/functions/Supports/fn_SUP_mortarRoutine.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ while {time < _timeout} do
105105
private _subTargets = [];
106106

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

0 commit comments

Comments
 (0)