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).
This commit is contained in:
ebaydayz
2016-08-23 11:34:58 -04:00
parent d7cc4be585
commit 5c13101254

View File

@@ -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],