mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix empty callbacks in medical/repair
This commit is contained in:
parent
5dcb8707dd
commit
2467fa7b0c
@ -69,6 +69,7 @@ _callback = if (isNil _callback) then {
|
||||
} else {
|
||||
missionNamespace getVariable _callback
|
||||
};
|
||||
if (!(_callback isEqualType {})) then {_callback = {TRACE_1("callback was NOT code",_callback)};};
|
||||
|
||||
_args call _callback;
|
||||
|
||||
|
@ -64,6 +64,7 @@ if (isNil _callback) then {
|
||||
} else {
|
||||
_callback = missionNamespace getVariable _callback;
|
||||
};
|
||||
if (!(_callback isEqualType {})) then {_callback = {TRACE_1("callback was NOT code",_callback)};};
|
||||
|
||||
//Get current blood loose on limb (for "bloody" litter)
|
||||
private _bloodLossOnSelection = 0;
|
||||
|
@ -63,6 +63,7 @@ if (isNil _callback) then {
|
||||
} else {
|
||||
_callback = missionNamespace getVariable _callback;
|
||||
};
|
||||
if (!(_callback isEqualType {})) then {_callback = {TRACE_1("callback was NOT code",_callback)};};
|
||||
|
||||
_args call _callback;
|
||||
|
||||
|
@ -58,6 +58,8 @@ if (isNil _callback) then {
|
||||
} else {
|
||||
_callback = missionNamespace getVariable _callback;
|
||||
};
|
||||
if (!(_callback isEqualType {})) then {_callback = {TRACE_1("callback was NOT code",_callback)};};
|
||||
|
||||
_args call _callback;
|
||||
|
||||
//todo: repair litter?
|
||||
|
Loading…
Reference in New Issue
Block a user