From 88691fe9d1f1e6b4099a6d0e4e507afc393f174a Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Sun, 6 Nov 2016 12:28:26 -0500 Subject: [PATCH] Fix mistake in remove.sqf DZE_DoorsLocked is a list of strings, not objects. I'm surprised no one noticed this before. --- SQF/dayz_code/actions/remove.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/remove.sqf b/SQF/dayz_code/actions/remove.sqf index 32b3d8a67..d44504727 100644 --- a/SQF/dayz_code/actions/remove.sqf +++ b/SQF/dayz_code/actions/remove.sqf @@ -22,7 +22,6 @@ if (DZE_permanentPlot) then { _isOwnerOfObj = (_objOwnerID == dayz_characterID); }; -if (_obj in DZE_DoorsLocked) exitWith {dayz_actionInProgress = false; localize "STR_EPOCH_ACTIONS_20" call dayz_rollingMessages;}; if (_obj getVariable ["GeneratorRunning", false]) exitWith {dayz_actionInProgress = false; localize "str_epoch_player_89" call dayz_rollingMessages;}; _objectID = _obj getVariable ["ObjectID","0"]; @@ -31,6 +30,7 @@ _objectUID = _obj getVariable ["ObjectUID","0"]; _isOk = true; _proceed = false; _objType = typeOf _obj; +if (_objType in DZE_DoorsLocked) exitWith {dayz_actionInProgress = false; localize "STR_EPOCH_ACTIONS_20" call dayz_rollingMessages;}; // Chance to break tools _isDestructable = _obj isKindOf "BuiltItems";