From ff1e12070842d41c4036a9fbf9df9c10e7ed139f Mon Sep 17 00:00:00 2001 From: AndreasBrostrom Date: Mon, 1 Jul 2024 12:22:13 +0200 Subject: [PATCH] Fixed saving --- cScripts/functions/gear/fn_gear_applyFunctions.sqf | 10 ++++------ cScripts/functions/players/fn_unit_setInsignia.sqf | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cScripts/functions/gear/fn_gear_applyFunctions.sqf b/cScripts/functions/gear/fn_gear_applyFunctions.sqf index 61725ceda..4e38dfc35 100644 --- a/cScripts/functions/gear/fn_gear_applyFunctions.sqf +++ b/cScripts/functions/gear/fn_gear_applyFunctions.sqf @@ -29,12 +29,10 @@ if (EGVAR(Settings,enableRadios)) then { // Earplugs -if (EGVAR(Settings,addEarplugs)) then { - if !([player] call ace_hearing_fnc_hasEarPlugsIn) then { - [{ - [_this select 0] call ace_hearing_fnc_putInEarplugs; - }, [player]] call CBA_fnc_execNextFrame; - }; +if !([player] call ace_hearing_fnc_hasEarPlugsIn) then { + [{ + [_this select 0] call ace_hearing_fnc_putInEarplugs; + }, [player]] call CBA_fnc_execNextFrame; }; diff --git a/cScripts/functions/players/fn_unit_setInsignia.sqf b/cScripts/functions/players/fn_unit_setInsignia.sqf index 058c0c7c2..b8b4c7e75 100644 --- a/cScripts/functions/players/fn_unit_setInsignia.sqf +++ b/cScripts/functions/players/fn_unit_setInsignia.sqf @@ -26,5 +26,6 @@ params [ if (!isPlayer _unit) exitWith {}; if (!_save) exitWith {}; +if (!QEGVAR(Settings,allowProfileSavedInsignia)) exitWith {}; [_insignia] call EFUNC(profile,saveInsignia); \ No newline at end of file