From 82db7d8109b3f11e1abc3e18aa112d57b1147c05 Mon Sep 17 00:00:00 2001 From: icomrade Date: Fri, 8 Sep 2017 10:11:20 -0400 Subject: [PATCH] consolidate eval --- SQF/dayz_code/compile/fn_selfActions.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index df2165a83..b4fb10e81 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -846,7 +846,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur s_player_downgrade_build = -1; }; }; - _isDoorUnlocked = (((_cursorTarget animationPhase "Open_door" == 0) && (_cursorTarget animationPhase "Open_hinge" == 1)) || ((_cursorTarget animationPhase "Open_door" == 0) && (_cursorTarget animationPhase "Open_latch" == 1))); + _isDoorUnlocked = ((_cursorTarget animationPhase "Open_door" == 0) && {(_cursorTarget animationPhase "Open_hinge" == 1) || (_cursorTarget animationPhase "Open_latch" == 1)}); if (s_player_downgrade_build < 0 && _isDoorUnlocked) then { _hasAccess = [player, _cursorTarget] call FNC_check_access; if ((_hasAccess select 0) or (_hasAccess select 2) or (_hasAccess select 3)) then {