From d47d887a66593e73f9c457243f2d5f093179e89b Mon Sep 17 00:00:00 2001 From: oiad Date: Sun, 17 Jul 2016 17:03:55 +1200 Subject: [PATCH] APFL more fixes This moves all the PFL stuff into the one if statement for tidyness, no point having 2 ifs. --- SQF/dayz_code/actions/modular_build.sqf | 6 ++---- SQF/dayz_code/actions/player_build.sqf | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/SQF/dayz_code/actions/modular_build.sqf b/SQF/dayz_code/actions/modular_build.sqf index 040eae858..0564e3997 100644 --- a/SQF/dayz_code/actions/modular_build.sqf +++ b/SQF/dayz_code/actions/modular_build.sqf @@ -537,14 +537,12 @@ if (_canBuild select 0) then { } else { //if not lockable item _tmpbuilt setVariable ["CharacterID",dayz_characterID,true]; - if (DZE_permanentPlot) then { - _tmpbuilt setVariable ["ownerPUID",_playerUID,true]; - }; // fire? if(_tmpbuilt isKindOf "Land_Fire_DZ") then { //if campfire, then spawn, but do not publish to database _tmpbuilt spawn player_fireMonitor; } else { if (DZE_permanentPlot) then { + _tmpbuilt setVariable ["ownerPUID",_playerUID,true]; PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID, _vector], []]; } else { PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location, _vector],[]]; @@ -574,4 +572,4 @@ if (_canBuild select 0) then { }; }; -DZE_ActionInProgress = false; \ No newline at end of file +DZE_ActionInProgress = false; diff --git a/SQF/dayz_code/actions/player_build.sqf b/SQF/dayz_code/actions/player_build.sqf index 2939fab84..5bcca8850 100644 --- a/SQF/dayz_code/actions/player_build.sqf +++ b/SQF/dayz_code/actions/player_build.sqf @@ -446,14 +446,12 @@ if (_canBuild select 0) then { } else { _tmpbuilt setVariable ["CharacterID",dayz_characterID,true]; - if (DZE_permanentPlot) then { - _tmpbuilt setVariable ["ownerPUID",_playerUID,true]; - }; // fire? if(_tmpbuilt isKindOf "Land_Fire_DZ") then { _tmpbuilt spawn player_fireMonitor; } else { if (DZE_permanentPlot) then { + _tmpbuilt setVariable ["ownerPUID",_playerUID,true]; PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID],_classname]; } else { PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location],[]];