Fix change code for upgraded storage

This commit is contained in:
AirwavesMan
2020-09-12 14:58:19 +02:00
parent 56c81ba5b6
commit c15a19e730

View File

@@ -12,8 +12,8 @@ private ["_backupCode","_badCode","_cursorTarget","_dialog","_dir","_doorFriends
_cursorTarget = _this select 3;
_typeOf = typeOf (_cursorTarget);
_isSafe = _typeOf == "VaultStorage";
_isLockBox = _typeOf == "LockBoxStorage";
_isSafe = _typeOf in ["VaultStorage","VaultStorage2"];
_isLockBox = _typeOf in ["LockBoxStorage","LockBoxStorage2","LockBoxStorageWinter","LockBoxStorageWinter2"];
_isStorage = (_isSafe || _isLockBox);
_isDoor = _typeOf in DZE_DoorsLocked;