Merge pull request #1495 from ebaydayz/patch-5

Change count back to forEach
This commit is contained in:
Skaronator.com
2014-07-31 22:34:16 +02:00

View File

@@ -863,7 +863,7 @@ server_spawnCleanLoot = {
}; };
}; };
sleep 0.001; sleep 0.001;
} count _missionObjs; } forEach _missionObjs;
if (_delQty > 0) then { if (_delQty > 0) then {
_qty = count _missionObjs; _qty = count _missionObjs;
diag_log (format["CLEANUP: Deleted %1 Loot Piles out of %2",_delQty,_qty]); diag_log (format["CLEANUP: Deleted %1 Loot Piles out of %2",_delQty,_qty]);
@@ -894,7 +894,7 @@ server_spawnCleanAnimals = {
}; };
}; };
sleep 0.001; sleep 0.001;
} count _missonAnimals; } forEach _missonAnimals;
if (_delQtyAnimal > 0) then { if (_delQtyAnimal > 0) then {
_qty = count _missonAnimals; _qty = count _missonAnimals;
diag_log (format["CLEANUP: Deleted %1 Animals out of %2",_delQtyAnimal,_qty]); diag_log (format["CLEANUP: Deleted %1 Animals out of %2",_delQtyAnimal,_qty]);