Skip to content

Commit

Permalink
Update addons/medical_damage/functions/fnc_woundsHandlerBase.sqf
Browse files Browse the repository at this point in the history
Co-authored-by: Jouni Järvinen <[email protected]>
  • Loading branch information
Cplhardcore and rautamiekka authored Nov 3, 2024
1 parent 5b68f80 commit ebb8fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/medical_damage/functions/fnc_woundsHandlerBase.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private _bodyPartVisParams = [_unit, false, false, false, false]; // params arra

// Check if current body part damage has reached the cap
private _currentDamage = _bodyPartDamage select _bodyPartNToAdd;
private _damageLimit = (missionNamespace getVariable [QEGVAR(medical,partDamageCap), 60]);
private _damageLimit = missionNamespace getVariable [QEGVAR(medical,partDamageCap), 60];
if (_currentDamage >= _damageLimit) then {
TRACE_1("damage cap reached for body part",_bodyPart);
continue // Skip further processing for this body part if cap is reached
Expand Down

0 comments on commit ebb8fb7

Please sign in to comment.