Hearing - Fix invalid usage of ARR macro (#7932)

This commit is contained in:
Björn Dahlgren 2020-10-03 17:21:20 +02:00 committed by GitHub
parent 2f3732003f
commit c4e7092ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ class CfgVehicles {
displayName = CSTRING(EarPlugs_On);
condition = QUOTE(GVAR(EnableCombatDeafness) && {!([_player] call FUNC(hasEarPlugsIn)) && {'ACE_EarPlugs' in items _player}});
exceptions[] = {"isNotSwimming", "isNotInside", "isNotSitting"};
statement = QUOTE( ARR_2([_player, true]) call FUNC(putInEarPlugs) );
statement = QUOTE([ARR_2(_player, true)] call FUNC(putInEarPlugs));
showDisabled = 0;
icon = QPATHTOF(UI\ACE_earplugs_x_ca.paa);
};
@ -15,7 +15,7 @@ class CfgVehicles {
displayName = CSTRING(EarPlugs_Off);
condition = QUOTE( GVAR(EnableCombatDeafness) && {[_player] call FUNC(hasEarPlugsIn)});
exceptions[] = {"isNotSwimming", "isNotInside", "isNotSitting"};
statement = QUOTE( ARR_2([_player, true]) call FUNC(removeEarPlugs) );
statement = QUOTE([ARR_2(_player, true)] call FUNC(removeEarPlugs));
showDisabled = 0;
icon = QPATHTOF(UI\ACE_earplugs_x_ca.paa);
};