From 73d5d95fc55b75fa969329f13aa2dc815b4e9594 Mon Sep 17 00:00:00 2001 From: vbawol Date: Wed, 6 Sep 2017 09:39:34 -0500 Subject: [PATCH] use apply to optimize --- Sources/epoch_code/init/both_init.sqf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Sources/epoch_code/init/both_init.sqf b/Sources/epoch_code/init/both_init.sqf index 98efb79c..c00fa474 100644 --- a/Sources/epoch_code/init/both_init.sqf +++ b/Sources/epoch_code/init/both_init.sqf @@ -70,11 +70,9 @@ EPOCH_customVarsDefaults = [ ["MissionArray",[],[]] ]; _customVarsInit = ["CfgEpochClient", "customVarsDefaults", EPOCH_customVarsDefaults] call EPOCH_fnc_returnConfigEntryV2; -{ - EPOCH_customVars pushBack (_x select 0); - EPOCH_defaultVars pushBack (_x select 1); - EPOCH_customVarLimits pushBack (_x param [2,[]]); -} forEach _customVarsInit; +EPOCH_customVars = _customVarsInit apply {_x param [0,""]}; +EPOCH_defaultVars = _customVarsInit apply {_x param [1,0]}; +EPOCH_customVarLimits = _customVarsInit apply {_x param [2,[]]}; EPOCH_customVarCount = count EPOCH_customVars; // Init Community Stats