mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker than forEach.
This commit is contained in:
@@ -39,7 +39,7 @@ _findNearestTree = [];
|
||||
};
|
||||
};
|
||||
|
||||
} foreach nearestObjects [([player] call FNC_getPos), [], 10];
|
||||
} count nearestObjects [([player] call FNC_getPos), [], 10];
|
||||
|
||||
//diag_log format["DEBUG TREES: %1", _findNearestTree];
|
||||
|
||||
@@ -68,7 +68,7 @@ if (count(_findNearestTree) >= 1) then {
|
||||
if (_isMedic) then {
|
||||
_started = true;
|
||||
};
|
||||
if (_started and !_isMedic) then {
|
||||
if (_started && !_isMedic) then {
|
||||
r_doLoop = false;
|
||||
_finished = true;
|
||||
[player,"chopwood",0,false] call dayz_zombieSpeak;
|
||||
|
||||
Reference in New Issue
Block a user