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

@@ -1,7 +1,7 @@
private["_firePlace","_ok","_mags","_serial","_qty","_countr"];
_firePlace = _this;
while {alive _firePlace} do {
while {inflamed _firePlace and alive _fireplace} do {
while {inflamed _firePlace && alive _fireplace} do {
//Use Wood
_ok = false;
_mags = getMagazineCargo _firePlace;
@@ -33,7 +33,7 @@ while {alive _firePlace} do {
_firePlace inflame false;
};
};
while {!inflamed _firePlace and alive _fireplace} do {
while {!inflamed _firePlace && alive _fireplace} do {
//Wait
sleep 1;
};