From ecea4662fbd0ada47c65a27b9dfdeeb9d864b558 Mon Sep 17 00:00:00 2001 From: icomrade Date: Thu, 18 Feb 2016 00:45:15 -0500 Subject: [PATCH] Math is hard --- SQF/dayz_code/actions/player_reloadMags.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/player_reloadMags.sqf b/SQF/dayz_code/actions/player_reloadMags.sqf index 258a7ac08..8e0ab0341 100644 --- a/SQF/dayz_code/actions/player_reloadMags.sqf +++ b/SQF/dayz_code/actions/player_reloadMags.sqf @@ -53,7 +53,7 @@ for "_i" from _slotstart to _slotend do { _qty_total_ammo = _qty_total_ammo + gearSlotAmmoCount _control; _consumeMagAmmo = gearSlotAmmoCount _control; _qty_consume_ammo = _qty_consume_ammo + _consumeMagAmmo; - if (_consume_magsize < (floor (0.85 * _consumeMagAmmo))) then { + if (_consumeMagAmmo >= (floor (0.85 * _consume_magsize))) then { _qty_consume_mags = _qty_consume_mags + 1; }; };