mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user