mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Vehicle Damage - Use "objectCurators" (#8587)
* Vehicle Damage - Use "objectCurators" Micro-optimization. Approximately 4x faster compared to previous method (0.0063 vs 0.0012 ms). * Remove extra whitespace * Removed extraneous isNotEqualTo check * Corrected missing array * Update addons/vehicle_damage/XEH_postInit.sqf Co-authored-by: jonpas <jonpas33@gmail.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: jonpas <jonpas33@gmail.com>
This commit is contained in:
parent
7b32edff09
commit
48005f08ef
@ -45,10 +45,8 @@
|
|||||||
params ["_vehicle", "_turret"];
|
params ["_vehicle", "_turret"];
|
||||||
|
|
||||||
{
|
{
|
||||||
if (_vehicle in curatorEditableObjects _x) then {
|
_x addCuratorEditableObjects [[_turret], false];
|
||||||
_x addCuratorEditableObjects [[_turret], false];
|
} forEach (objectCurators _vehicle);
|
||||||
};
|
|
||||||
} forEach allCurators;
|
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user