Fix empty callbacks in medical/repair

This commit is contained in:
PabstMirror 2016-02-21 11:34:25 -06:00
parent 5dcb8707dd
commit 2467fa7b0c
4 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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?