Replace usage of filter to select in tagging

This commit is contained in:
jonpas 2016-03-16 20:17:23 +01:00
parent 1ffd23c193
commit 72c9e9da39

View File

@ -16,7 +16,7 @@
#include "script_component.hpp"
_fnc_isLeaning = {
GVAR(tagsToTest) = GVAR(tagsToTest) select {
params ["_tag", "_tagPosASL", "_vectorDirAndUp"];
_vectorDirAndUp params ["_v1", "_v2"];
@ -34,7 +34,6 @@ _fnc_isLeaning = {
};
true
};
GVAR(tagsToTest) = [GVAR(tagsToTest), _fnc_isLeaning] call EFUNC(common,filter);
// If there's no more tag
if (GVAR(tagsToTest) isEqualTo []) exitWith {