mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-26 09:41:50 +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:
@@ -10,7 +10,7 @@ if (!isNull cursorTarget) then {
|
||||
|
||||
if(player distance _ent < 5) then {
|
||||
|
||||
if (_ent isKindOf "Animal" or _isZombie) then {
|
||||
if (_ent isKindOf "Animal" || _isZombie) then {
|
||||
_ent setDamage 1;
|
||||
} else {
|
||||
/* PVS/PVC - Skaronator */
|
||||
|
||||
@@ -69,7 +69,7 @@ if(!(alive _item)) then {
|
||||
|
||||
[player,"eat",0,false] call dayz_zombieSpeak;
|
||||
|
||||
// todo: dump loot on ground and then remove
|
||||
// todo: dump loot on ground && then remove
|
||||
|
||||
//Ensure Control is visible
|
||||
_display = uiNamespace getVariable 'DAYZ_GUI_display';
|
||||
|
||||
@@ -18,7 +18,7 @@ _index = 0;
|
||||
_NV set [_index,(_NV select _index) + _x];
|
||||
|
||||
_index =_index + 1;
|
||||
} forEach _increase;
|
||||
} count _increase;
|
||||
|
||||
// set rgb + m
|
||||
player setVariable [_NVx, _NV];
|
||||
|
||||
Reference in New Issue
Block a user