Skip to content

Commit

Permalink
Merge pull request #1489 from 10Dozen/dzn-accessort-action-fix
Browse files Browse the repository at this point in the history
Accessory - Removes action from pointers while not in slot
  • Loading branch information
PabstMirror committed Sep 13, 2021
2 parents a64733a + fc6dff4 commit 4fb95ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/accessory/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!hasInterface) exitWith {};
}, {}, [DIK_SUBTRACT, [true, false, false]]] call CBA_fnc_addKeybind;

[
"##AccessoryPointer", "ALL", [LSTRING(railNext), LSTRING(railNext_tooltip)], nil, nil, {
"##AccessoryPointer", "POINTER", [LSTRING(railNext), LSTRING(railNext_tooltip)], nil, nil, {
params ["", "", "_item"];
count (_item call CBA_fnc_switchableAttachments) > 1 // return
}, {
Expand All @@ -31,7 +31,7 @@ if (!hasInterface) exitWith {};
] call CBA_fnc_addItemContextMenuOption;

[
"##AccessorySights", "ALL", [LSTRING(opticNext), LSTRING(opticNext_tooltip)], nil, nil, {
"##AccessorySights", "OPTIC", [LSTRING(opticNext), LSTRING(opticNext_tooltip)], nil, nil, {
params ["", "", "_item"];
count (_item call CBA_fnc_switchableAttachments) > 1 // return
}, {
Expand Down

0 comments on commit 4fb95ef

Please sign in to comment.