mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-05-18 08:33:22 +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:
@@ -27,7 +27,7 @@ while {r_doLoop} do {
|
||||
if (_isMedic) then {
|
||||
_started = true;
|
||||
};
|
||||
if (_started and !_isMedic) then {
|
||||
if (_started && !_isMedic) then {
|
||||
r_doLoop = false;
|
||||
_finished = true;
|
||||
};
|
||||
@@ -52,7 +52,7 @@ if (_finished) then {
|
||||
_display closeDisplay 0;
|
||||
};
|
||||
|
||||
if ((_unit == player) or (vehicle player != player)) then {
|
||||
if ((_unit == player) || (vehicle player != player)) then {
|
||||
//Self Healing
|
||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medMorphine.sqf";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user