Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a script error #657

Merged
merged 1 commit into from
May 3, 2017
Merged

fix a script error #657

merged 1 commit into from
May 3, 2017

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented May 1, 2017

When merged this pull request will:

  • fixes:
 5:09:44   Error ||: Type Display (dialog), expected Bool
 5:09:44 File x\cba\addons\events\fnc_keyHandlerDown.sqf, line 69
 5:09:44 Error in expression <= [_params call _code] param [0, false] || {_blockInput};

Retrun value could be anything and not bool would error.

[_params call _code] param [0, false] isEqualTo true

is essentially:

private _temp = _params call _code;
!isNil "_temp" && {_temp isEqualTo true}

but a bit faster.

@commy2 commy2 added the Bug Fix label May 1, 2017
@commy2 commy2 added this to the 3.4 milestone May 1, 2017
@commy2 commy2 self-assigned this May 1, 2017
@Killswitch00 Killswitch00 merged commit 5c7a661 into keybinding May 3, 2017
@Killswitch00 Killswitch00 deleted the keybinding-fix-script-error branch May 3, 2017 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants