Skip to content

Commit adccded

Browse files
committed
Fix precedence error in mortar/arty support routine
1 parent 343c1a3 commit adccded

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)