Fix missing earplug actions (#7464)

Fix bug introduced in #7400
This commit is contained in:
Filip Maciejewski 2020-01-13 18:34:42 +01:00 committed by jonpas
parent 3a65a73e94
commit ad579bf5e4

View File

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