Skip to content

Commit

Permalink
fix script errors
Browse files Browse the repository at this point in the history
and remove recursive call of CBA_fnc_directCall
  • Loading branch information
b-mayr-1984 committed Sep 11, 2024
1 parent 3e5c7d5 commit ccd63e1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions addons/zeus/XEH_preClientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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;
Expand Down

0 comments on commit ccd63e1

Please sign in to comment.