From ba9af585327cf02b9b2c129e245ee3ab4d625e7c Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Wed, 22 Jan 2014 09:32:33 -0600 Subject: [PATCH] removed retry hopefully it will not be needed now --- SQF/dayz_code/actions/player_buildingMaint.sqf | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/SQF/dayz_code/actions/player_buildingMaint.sqf b/SQF/dayz_code/actions/player_buildingMaint.sqf index 1d0dafe16..f79fd5351 100644 --- a/SQF/dayz_code/actions/player_buildingMaint.sqf +++ b/SQF/dayz_code/actions/player_buildingMaint.sqf @@ -79,18 +79,11 @@ if (_proceed) then { // all parts removed proceed if (_tobe_removed_total == _removed_total) then { - - cutText [format[(localize "str_epoch_player_144"),_text], "PLAIN DOWN", 5]; - - _uniqueID = random(99999); - _retry = 0; + cutText [format[(localize "STR_EPOCH_ACTIONS_4"), _count], "PLAIN DOWN", 5]; - while {2 >= _retry} do { // 2 Times - _retry = _retry + 1; - PVDZE_maintainArea = [player,2,[_obj],_uniqueID]; - publicVariableServer "PVDZE_maintainArea"; - sleep 20; - }; + PVDZE_maintainArea = [player,2,_obj]; + publicVariableServer "PVDZE_maintainArea"; + } else { {player addMagazine _x;} forEach _temp_removed_array;