mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Optimize dev_hitbox deleting
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
8b3826a78c
commit
78a15b1d5c
@ -27,11 +27,10 @@ if (!GVAR(debugOptions)) exitWith {};
|
||||
} forEach GVAR(dev_trackLines);
|
||||
|
||||
if (GVAR(drawHitBox)) then {
|
||||
private _deleteArr = [];
|
||||
{
|
||||
_y params ["_object", "_boxPoints", "_color"];
|
||||
if (!alive _object) then {
|
||||
_deleteArr pushBack _x;
|
||||
GVAR(dev_hitBoxes) deleteAt _x;
|
||||
continue;
|
||||
};
|
||||
|
||||
@ -40,10 +39,5 @@ if (GVAR(drawHitBox)) then {
|
||||
drawLine3D [_object modelToWorld (_boxPoints#(_x#_i)), _object modelToWorld (_boxPoints#(_x#(_i-1))), _color];
|
||||
};
|
||||
} forEach HITBOX_DRAW_PATH;
|
||||
|
||||
} forEach GVAR(dev_hitBoxes);
|
||||
|
||||
{
|
||||
GVAR(dev_hitBoxes) deleteAt _x;
|
||||
} forEach _deleteArr;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user