From 0ddfd5eb161dbb4f835e94a187547ccecb1b86af Mon Sep 17 00:00:00 2001 From: ulteq Date: Thu, 15 Dec 2016 14:51:24 +0100 Subject: [PATCH] Disable wound reopening when advanced bandages are disabled --- addons/medical/stringtable.xml | 2 +- .../medical_treatment/functions/fnc_treatmentBandageLocal.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/medical/stringtable.xml b/addons/medical/stringtable.xml index b78f6f84bb..00f1625799 100644 --- a/addons/medical/stringtable.xml +++ b/addons/medical/stringtable.xml @@ -2896,7 +2896,7 @@ Advanced Bandages - Enable advanced bandages + Enable advanced bandages (required for wound reopening) Advanced Medication diff --git a/addons/medical_treatment/functions/fnc_treatmentBandageLocal.sqf b/addons/medical_treatment/functions/fnc_treatmentBandageLocal.sqf index 16c85fc5e2..38568e5908 100644 --- a/addons/medical_treatment/functions/fnc_treatmentBandageLocal.sqf +++ b/addons/medical_treatment/functions/fnc_treatmentBandageLocal.sqf @@ -98,7 +98,7 @@ _openWounds set [_mostEffectiveSpot, _mostEffectiveInjury]; _target setVariable [QEGVAR(medical,openWounds), _openWounds, true]; // Handle the reopening of bandaged wounds -if (_impact > 0 && {EGVAR(medical,woundReopening)}) then { +if (_impact > 0 && {EGVAR(medical,advancedBandages) && {EGVAR(medical,woundReopening)}}) then { [_target, _impact, _partIndex, _mostEffectiveSpot, _mostEffectiveInjury, _bandage] call FUNC(handleBandageOpening); };