Medical - Improve some error msgs (#7588)

This commit is contained in:
PabstMirror 2020-04-04 22:01:51 -05:00 committed by GitHub
parent dd0ca9dc84
commit a84af7ba9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -18,9 +18,7 @@
params [["_unit", objNull, [objNull]], ["_damage", 0, [0]]];
if (!local _unit) exitWith {
ERROR("Unit not local or null");
};
if (!local _unit) exitWith { ERROR_2("setStructuralDamage: Unit not local or null [%1:%2]",_unit,typeOf _unit); };
private _hitPointDamages = getAllHitPointsDamage _unit param [2, []];

View File

@ -18,7 +18,7 @@
params [["_unit", objNull, [objNull]]];
if (!local _unit) exitWith { ERROR("Unit not local or null"); };
if (!local _unit) exitWith { ERROR_2("updateDamageEffects: Unit not local or null [%1:%2]",_unit,typeOf _unit); };
private _isLimping = false;

View File

@ -23,9 +23,8 @@
params [["_unit", objNull, [objNull]], ["_type", "hit", [""]], ["_severity", 0, [0]]];
// TRACE_3("",_unit,_type,_severity);
if (!local _unit) exitWith {
ERROR("Unit not local or null");
};
if (!local _unit) exitWith { ERROR_2("playInjuredSound: Unit not local or null [%1:%2]",_unit,typeOf _unit); };
if !(_unit call EFUNC(common,isAwake)) exitWith {};
// Handle timeout