Skip to content

Commit

Permalink
Arsenal - Fix fire rate sort caused by flashlight (#7878)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Brett and jonpas authored Aug 27, 2020
1 parent e9b2087 commit 572e61d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/arsenal/functions/fnc_sortStatement_rateOfFire.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 572e61d

Please sign in to comment.