mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
use apply to optimize
This commit is contained in:
parent
3c13af5944
commit
73d5d95fc5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user