Skip to content

Commit

Permalink
Merge pull request #3560 from acemod/unscheduledactions
Browse files Browse the repository at this point in the history
execute addActionEvents in unscheduled env
  • Loading branch information
commy2 committed Mar 8, 2016
2 parents d86f58f + e605ede commit 5b87780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_addActionEventHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if (_actionID == -1) then {
private _addAction = call compile format [
"[
'',
{if (inputAction '%1' == 0) exitWith {}; {if (_this call (_x select 0)) then {_this call (_x select 1)}} forEach (((_this select 0) getVariable '%2') select 1 select 2)},
{[{if (inputAction '%1' == 0) exitWith {}; {if (_this call (_x select 0)) then {_this call (_x select 1)}} forEach (((_this select 0) getVariable '%2') select 1 select 2)}, _this] call CBA_fnc_directCall},
nil,
-1,
false,
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_addActionMenuEventHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ _actionIDs pushBack _id;
private _addAction = call compile format [
"[
'%2',
{if (inputAction '%1' == 0) then {if (_this call (%3 select 2)) then {_this call (%3 select 3)}} else {_this call (%3 select 1)}},
{[{if (inputAction '%1' == 0) then {if (_this call (%3 select 2)) then {_this call (%3 select 3)}} else {_this call (%3 select 1)}}, _this] call CBA_fnc_directCall},
nil,
%4,
false,
Expand Down

0 comments on commit 5b87780

Please sign in to comment.