Replace forEach with Count

Use count where you do not need _forEachIndex variable, it's quicker
than forEach.
This commit is contained in:
icomrade
2014-05-27 15:37:57 -04:00
parent 91d246e64e
commit e54b9983dd
210 changed files with 890 additions and 890 deletions

View File

@@ -18,5 +18,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define R3F_WEIGHT_SHOW_WEIGHT
//show or not classes not found in arma.rpt
//show || not classes not found in arma.rpt
//#define R3F_WEIGHT_SHOW_CLASSES_NOT_FOUND

View File

@@ -23,7 +23,7 @@ R3F_WEIGHT_FNCT_MakeSingleArray = {
};
_n = _n + 1;
}foreach _arr_i;
}count _arr_i;
_arr;
};
@@ -57,7 +57,7 @@ R3F_WEIGHT_FNCT_GetItemWeight = {
};
};
};
}foreach _arr_class;
}count _arr_class;
_total_weight;
};