Arsenal - Fix fire rate sort caused by flashlight (#7878)

* fix firerate sort caused by flashlight

* Update fnc_sortStatement_rateOfFire.sqf

* Update addons/arsenal/functions/fnc_sortStatement_rateOfFire.sqf

Co-authored-by: jonpas <jonpas33@gmail.com>

Co-authored-by: jonpas <jonpas33@gmail.com>
This commit is contained in:
Brett 2020-08-27 09:35:55 -06:00 committed by GitHub
parent e9b2087faf
commit 572e61d1cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,5 +22,7 @@ private _fireRate = [];
} foreach _fireModes;
_fireRate sort true;
_fireRate = _fireRate param [0, 0];
round (60 / (_fireRate param [0, 0]))
if (_fireRate == 0) exitWith {0};
round (60 / _fireRate)