From bac0071745c95cd5fc2e0fdfb1bebf745a1c7c4e Mon Sep 17 00:00:00 2001 From: oiad Date: Mon, 16 Apr 2018 23:43:00 +1200 Subject: [PATCH] Remove duplicate "DZ_buildables" DZ_buildables is already part of DZE_maintainClasses --- SQF/dayz_code/actions/plotManagement/plotObjects.sqf | 2 +- SQF/dayz_code/compile/dze_buildChecks.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/plotManagement/plotObjects.sqf b/SQF/dayz_code/actions/plotManagement/plotObjects.sqf index fecbb490e..ac8dc8eae 100644 --- a/SQF/dayz_code/actions/plotManagement/plotObjects.sqf +++ b/SQF/dayz_code/actions/plotManagement/plotObjects.sqf @@ -4,7 +4,7 @@ disableSerialization; _range = DZE_PlotPole select 0; _target = (([player] call FNC_getPos) nearEntities ["Plastic_Pole_EP1_DZ",15]) select 0; // Also count safes, lockboxes, vanilla buildables, tents and stashes against DZE_BuildingLimit -_buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_buildables","DZ_storage_base"]; +_buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_storage_base"]; _count = count (nearestObjects [_target,_buildables,_range]); _colour = "#ffffff"; diff --git a/SQF/dayz_code/compile/dze_buildChecks.sqf b/SQF/dayz_code/compile/dze_buildChecks.sqf index 1e22854b0..d1cfef896 100644 --- a/SQF/dayz_code/compile/dze_buildChecks.sqf +++ b/SQF/dayz_code/compile/dze_buildChecks.sqf @@ -101,7 +101,7 @@ if (!_canBuild) exitWith { if (DZE_BuildHeightLimit > 0 && {([player] call fnc_getPos) select 2 > DZE_BuildHeightLimit}) exitWith {dayz_actionInProgress = false; format[localize "STR_EPOCH_PLAYER_168",DZE_BuildHeightLimit] call dayz_rollingMessages; [false, _isPole];}; // Also count safes, lockboxes, vanilla buildables, tents and stashes against DZE_BuildingLimit -_buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_buildables","DZ_storage_base"]; +_buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_storage_base"]; _center = if (isNull _nearestPole) then {_pos} else {_nearestPole}; if ((count (nearestObjects [_center,_buildables,_distance])) >= DZE_BuildingLimit) exitWith {dayz_actionInProgress = false; format[localize "str_epoch_player_41",_distance] call dayz_rollingMessages; [false, _isPole];};