mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +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 {
|
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
|
// water map, add boats
|
||||||
|
|
||||||
{AllowedVehiclesList set [count AllowedVehiclesList,_x];} count [
|
AllowedVehiclesList = AllowedVehiclesList + [
|
||||||
["Fishing_Boat",_Ratio3],
|
["Fishing_Boat",_Ratio3],
|
||||||
["JetSkiYanahui_Case_Blue",_Ratio1],
|
["JetSkiYanahui_Case_Blue",_Ratio1],
|
||||||
["JetSkiYanahui_Case_Green",_Ratio1],
|
["JetSkiYanahui_Case_Green",_Ratio1],
|
||||||
|
|||||||
Reference in New Issue
Block a user