Fix gear menu bypass mistake from 89078d1

This commit is contained in:
ebaydayz
2016-11-13 15:02:36 -05:00
parent 89078d1611
commit 81013ace75

View File

@@ -47,8 +47,8 @@ if ((vehicle player) == player) then {
//direct gear to cursorTarget
[_lastSave, _startTime, _ctType, _cTarget] spawn {
waitUntil {((_this select 0) != dayz_lastSave) || {diag_tickTime >= ((_this select 1) + 1)}}; //waiting is required otherwise player_forceSave will reset DZE_GearCheckBypass
DZE_GearCheckBypass = true;
if (!dialog) then {
DZE_GearCheckBypass = true;
if ((((_this select 2) in DZE_isNewStorage) || {(_this select 2) == "LockboxStorage"} || {(_this select 2) isKindOf "Land_A_tent"} || {(_this select 2) isKindOf "WeaponHolder"} || {((!alive (_this select 3)) && {(_this select 2) isKindOf "Man"})}) && {!(locked (_this select 3))}) then {
Player action ["GEAR", (_this select 3)];
} else {