From ccd63e1bc6a4ede6f3345280ae29dfc83b3fd5f0 Mon Sep 17 00:00:00 2001 From: b-mayr-1984 Date: Wed, 11 Sep 2024 23:18:42 +0200 Subject: [PATCH] fix script errors and remove recursive call of CBA_fnc_directCall --- addons/zeus/XEH_preClientInit.sqf | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/addons/zeus/XEH_preClientInit.sqf b/addons/zeus/XEH_preClientInit.sqf index 79e6e36..93bf4ff 100644 --- a/addons/zeus/XEH_preClientInit.sqf +++ b/addons/zeus/XEH_preClientInit.sqf @@ -41,8 +41,7 @@ if (isClass (configFile >> "CfgPatches" >> "tfar_core")) then { [{ if !(isNull (getAssignedCuratorLogic ace_player)) exitWith {}; - params ["", "_args"]; - _args params ["_unit", "_radio", "_channel", "_additional"]; + params ["_unit", "_radio", "_channel", "_additional"]; private _frequency = [(call TFAR_fnc_activeSwRadio), (_channel +1)] call TFAR_fnc_getChannelFrequency; if (_additional) then { @@ -66,11 +65,9 @@ if (isClass (configFile >> "CfgPatches" >> "tfar_core")) then { [{ if !(isNull (getAssignedCuratorLogic ace_player)) exitWith {}; - params ["", "_args"]; - _args params ["_unit", "", "", "_channel", "_additional"]; + params ["_unit", "", "", "_channel", "_additional"]; - // TFAR_fnc_activeLRRadio has to be called in a non-scheduled environment - private _frequency = {[(call TFAR_fnc_activeLRRadio), (_channel + 1)] call TFAR_fnc_getChannelFrequency; } call CBA_fnc_directCall; + private _frequency = [(call TFAR_fnc_activeLRRadio), (_channel + 1)] call TFAR_fnc_getChannelFrequency; if (_additional) then { if (_channel isEqualTo (_unit getVariable [QGVAR(freqAdditionalLR), -1])) exitWith { @@ -93,7 +90,6 @@ if (isClass (configFile >> "CfgPatches" >> "tfar_core")) then { [{ if !(isNull (getAssignedCuratorLogic ace_player)) exitWith {}; - params ["", "_args"]; params ["_unit", "_radio", "_channel", "", "_frequency"]; private _backpackLR = call TFAR_fnc_activeLRRadio;