Skip to content

Commit

Permalink
DAGR / Kestrel - Fix deviceKey condition (acemod#8368)
Browse files Browse the repository at this point in the history
* Fix DAGR keybind

* Fix Kestrel keybind

* Consistency with other deviceKey conditions
  • Loading branch information
LinkIsGrim authored and AndreasBrostrom committed Dec 3, 2021
1 parent f117b21 commit de94ffd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/dagr/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CfgVehicles {
statement = QUOTE(call FUNC(menuInit));
showDisabled = 0;
icon = QPATHTOF(UI\DAGR_Icon.paa);
exceptions[] = {"isNotInside", "isNotSitting"};
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
class GVAR(toggle) {
displayName = CSTRING(ToggleDAGR);
condition = QUOTE([ARR_2(_player,'ACE_DAGR')] call EFUNC(common,hasItem));
Expand Down
2 changes: 1 addition & 1 deletion addons/dagr/initKeybinds.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private _conditonCode = {
};
private _toggleCode = {
// Conditions: canInteract
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {};
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};

// Statement
[] call FUNC(toggleOverlay);
Expand Down
2 changes: 1 addition & 1 deletion addons/kestrel4500/initKeybinds.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private _conditonCode = {
};
private _toggleCode = {
// Conditions: canInteract
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {};
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};

// Statement
if (!GVAR(Overlay)) then {
Expand Down

0 comments on commit de94ffd

Please sign in to comment.