From b7d1bc5bb6133492df23c578fe8147e740f01037 Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Sun, 14 Jul 2024 11:10:53 +0200 Subject: [PATCH] Minor tweaks --- addons/medical_engine/initSettings.inc.sqf | 5 ++--- addons/medical_treatment/XEH_postInit.sqf | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/medical_engine/initSettings.inc.sqf b/addons/medical_engine/initSettings.inc.sqf index b60ab23344..905f6c005a 100644 --- a/addons/medical_engine/initSettings.inc.sqf +++ b/addons/medical_engine/initSettings.inc.sqf @@ -4,9 +4,8 @@ [LSTRING(Enabled_DisplayName), LSTRING(Enabled_Description)], ELSTRING(medical,Category), true, - true, { - [QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged) - }, + true, + {[QEGVAR(medical,enabled), _this] call EFUNC(common,cbaSettings_settingChanged)}, true // Needs mission restart ] call CBA_fnc_addSetting; diff --git a/addons/medical_treatment/XEH_postInit.sqf b/addons/medical_treatment/XEH_postInit.sqf index c76ecc81f3..932ee43fb8 100644 --- a/addons/medical_treatment/XEH_postInit.sqf +++ b/addons/medical_treatment/XEH_postInit.sqf @@ -35,7 +35,7 @@ if (isServer) then { // replace medical items with their ACE equivalents ["CBA_settingsInitialized", { - TRACE_1("CBA_settingsInitialized EH",GVAR(convertItems)); // 0: Enabled 1: RemoveOnly 2:Disabled + TRACE_1("CBA_settingsInitialized EH",GVAR(convertItems)); // 0: Enabled 1: RemoveOnly { // turn [["stuff", 2], ...] into ["stuff", "stuff", ...] private _replacements = [];