Skip to content

Commit

Permalink
FIX LR settings error
Browse files Browse the repository at this point in the history
  • Loading branch information
tuntematonjr committed Oct 1, 2022
1 parent 3be04b8 commit 733f2b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion addons/Respawn/functions/fnc_radioSettings_tfar.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private _fnc_saveSWSettings = {
if (_unit != player) exitWith {};
player setVariable [QGVAR(swSettings),(call TFAR_fnc_activeSwRadio) call TFAR_fnc_getSwSettings];
};

{[_x,_fnc_saveSWSettings] call CBA_fnc_addEventHandler} forEach [
"TFAR_event_OnSWchannelSet",
"TFAR_event_OnSWstereoSet",
Expand All @@ -33,9 +34,14 @@ private _fnc_saveSWSettings = {
// same for longrange
private _fnc_saveLRSettings = {
params ["_unit"];

if (_unit != player) exitWith {};
player setVariable [QGVAR(lrSettings),(call TFAR_fnc_activeLrRadio) call TFAR_fnc_getLrSettings];
[{
player setVariable [QGVAR(lrSettings),(call TFAR_fnc_activeLrRadio) call TFAR_fnc_getLrSettings];
}] call CBA_fnc_execNextFrame;

};

{[_x,_fnc_saveLRSettings] call CBA_fnc_addEventHandler} forEach [
"TFAR_event_OnLRchannelSet",
"TFAR_event_OnLRstereoSet",
Expand Down

0 comments on commit 733f2b0

Please sign in to comment.