Remove debug stuff

This commit is contained in:
Nicolás Badano 2015-03-05 22:52:37 -03:00
parent c8f320d501
commit 5b4fa6b503

View File

@ -27,14 +27,12 @@ _ammoCount = _target ammo currentWeapon _target;
// Exit if the belt is full or empty // Exit if the belt is full or empty
if ((_ammoCount == 0) || (getNumber (_magazineCfg >> "count") - _ammoCount) == 0) exitWith {false}; if ((_ammoCount == 0) || (getNumber (_magazineCfg >> "count") - _ammoCount) == 0) exitWith {false};
// Check if the player has any of the same same magazines // Check if the player has any of the same magazines
// Calculate max ammo // Calculate max ammo
private "_maxAmmo"; private "_maxAmmo";
_maxAmmo = 0; _maxAmmo = 0;
{ {
diag_log "filtered:";
diag_log _x;
_maxAmmo = _maxAmmo max (_x select 1); _maxAmmo = _maxAmmo max (_x select 1);
} forEach ([magazinesAmmo _player, {_this select 0 == _magazineType}] call EFUNC(common,filter)); } forEach ([magazinesAmmo _player, {_this select 0 == _magazineType}] call EFUNC(common,filter));