mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
removed diag_log calls
This commit is contained in:
parent
3b17cc68e1
commit
b6133eb73e
@ -26,13 +26,11 @@ if ([_unit] call FUNC(hasMedicalEnabled) || _force) then {
|
|||||||
if ((_unit getvariable[QGVAR(addedToUnitLoop),false] || !alive _unit) && !_force) exitwith{};
|
if ((_unit getvariable[QGVAR(addedToUnitLoop),false] || !alive _unit) && !_force) exitwith{};
|
||||||
_unit setvariable [QGVAR(addedToUnitLoop), true, true];
|
_unit setvariable [QGVAR(addedToUnitLoop), true, true];
|
||||||
|
|
||||||
diag_log format["[MEDICAL] Added a unit to loop: %1", _unit];
|
|
||||||
[{
|
[{
|
||||||
private "_unit";
|
private "_unit";
|
||||||
_unit = (_this select 0) select 0;
|
_unit = (_this select 0) select 0;
|
||||||
if (!alive _unit || !local _unit) then {
|
if (!alive _unit || !local _unit) then {
|
||||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||||
diag_log format["[MEDICAL] Removed a unit from loop: %1", _unit];
|
|
||||||
if (!local _unit) then {
|
if (!local _unit) then {
|
||||||
if (GVAR(level) >= 2) then {
|
if (GVAR(level) >= 2) then {
|
||||||
_unit setvariable [QGVAR(heartRate), _unit getvariable [QGVAR(heartRate), 0], true];
|
_unit setvariable [QGVAR(heartRate), _unit getvariable [QGVAR(heartRate), 0], true];
|
||||||
|
Loading…
Reference in New Issue
Block a user