Fix tagTestingThread error (#4662)

Close #4659
This commit is contained in:
PabstMirror 2016-11-12 15:46:29 -06:00 committed by Glowbal
parent 27cc4ed7c0
commit 1f6ce7ff81

View File

@ -27,13 +27,14 @@ GVAR(tagsToTest) = GVAR(tagsToTest) select {
private _intersections = lineIntersectsSurfaces [_tagPosASL, _endPosASL, _tag, objNull, true, 1, "GEOM", "FIRE"]; private _intersections = lineIntersectsSurfaces [_tagPosASL, _endPosASL, _tag, objNull, true, 1, "GEOM", "FIRE"];
// If there's no intersections // If there's no intersections
if (_intersections isEqualTo []) exitWith { if (_intersections isEqualTo []) then {
TRACE_1("No intersections, deleting:",_tag); TRACE_1("No intersections, deleting:",_tag);
deleteVehicle _tag; deleteVehicle _tag;
false false
}; } else {
true true
}; };
};
// If there's no more tag // If there's no more tag
if (GVAR(tagsToTest) isEqualTo []) exitWith { if (GVAR(tagsToTest) isEqualTo []) exitWith {