mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
exit the loop properly
This commit is contained in:
parent
2d029401f5
commit
04c9b628c4
@ -54,6 +54,9 @@ private _distance = -1;
|
|||||||
_distance = _detectorPointAGL distance _x;
|
_distance = _detectorPointAGL distance _x;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (!isNull _mine) exitWith {};
|
||||||
|
|
||||||
} forEach _nearestObjects;
|
} forEach _nearestObjects;
|
||||||
|
|
||||||
TRACE_3("return",_isDetectable,_mine,_distance);
|
TRACE_3("return",_isDetectable,_mine,_distance);
|
||||||
|
Loading…
Reference in New Issue
Block a user