mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3589 from acemod/fncFilterToSelect
Replace usage of filter to select in tagging
This commit is contained in:
commit
1945230af8
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
_fnc_isLeaning = {
|
GVAR(tagsToTest) = GVAR(tagsToTest) select {
|
||||||
params ["_tag", "_tagPosASL", "_vectorDirAndUp"];
|
params ["_tag", "_tagPosASL", "_vectorDirAndUp"];
|
||||||
|
|
||||||
_vectorDirAndUp params ["_v1", "_v2"];
|
_vectorDirAndUp params ["_v1", "_v2"];
|
||||||
@ -34,7 +34,6 @@ _fnc_isLeaning = {
|
|||||||
};
|
};
|
||||||
true
|
true
|
||||||
};
|
};
|
||||||
GVAR(tagsToTest) = [GVAR(tagsToTest), _fnc_isLeaning] call EFUNC(common,filter);
|
|
||||||
|
|
||||||
// If there's no more tag
|
// If there's no more tag
|
||||||
if (GVAR(tagsToTest) isEqualTo []) exitWith {
|
if (GVAR(tagsToTest) isEqualTo []) exitWith {
|
||||||
|
Loading…
Reference in New Issue
Block a user