mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Change count back to forEach
Can not nest count loops inside other count loops: https://community.bistudio.com/wiki/Code_Optimisation#forEach_vs_count
This commit is contained in:
@@ -137,7 +137,7 @@ if(isServer)then{
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
sleep 0.001;
|
sleep 0.001;
|
||||||
} count _missonLights;
|
} forEach _missonLights;
|
||||||
if (_delQtyLights > 0) then {
|
if (_delQtyLights > 0) then {
|
||||||
_qty = count _missonLights;
|
_qty = count _missonLights;
|
||||||
diag_log (format["CLEANUP: Deleted %1 Lights out of %2",_delQtyLights,_qty]);
|
diag_log (format["CLEANUP: Deleted %1 Lights out of %2",_delQtyLights,_qty]);
|
||||||
|
|||||||
Reference in New Issue
Block a user