From 5c1310125452dfb21594099065f3883112dcbc2d Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 23 Aug 2016 11:34:58 -0400 Subject: [PATCH] Add arrays slightly faster in dynamic_vehicle.sqf Set is faster when adding a single element to an array, but + is faster for combining arrays (or append in A3). --- SQF/dayz_server/system/dynamic_vehicle.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_server/system/dynamic_vehicle.sqf b/SQF/dayz_server/system/dynamic_vehicle.sqf index 8ed486443..c02439a96 100644 --- a/SQF/dayz_server/system/dynamic_vehicle.sqf +++ b/SQF/dayz_server/system/dynamic_vehicle.sqf @@ -117,7 +117,7 @@ AllowedVehiclesList = [ if (toLower worldName in ["caribou","chernarus","cmr_ovaron","dingor","fallujah","fapovo","fdf_isle1_a","isladuala","lingor","mbg_celle2","namalsk","napf","oring","panthera2","sara","sauerland","smd_sahrani_a2","tavi","trinity","utes"]) then { // water map, add boats - {AllowedVehiclesList set [count AllowedVehiclesList,_x];} count [ + AllowedVehiclesList = AllowedVehiclesList + [ ["Fishing_Boat",_Ratio3], ["JetSkiYanahui_Case_Blue",_Ratio1], ["JetSkiYanahui_Case_Green",_Ratio1],