Skip to content

Commit

Permalink
Fix possible issue with weapons without firemodes (#6386)
Browse files Browse the repository at this point in the history
Apparently that's a thing
  • Loading branch information
alganthe authored and PabstMirror committed Jun 10, 2018
1 parent 593fdb4 commit 0c0c129
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/arsenal/functions/fnc_statBarStatement_accuracy.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ private _dispersion = [];

_dispersion sort true;

linearConversion [_statMinMax select 0, _statMinMax select 1, _dispersion select 0, _barLimits select 0, _barLimits select 1]
linearConversion [_statMinMax select 0, _statMinMax select 1, _dispersion param [0, 0], _barLimits select 0, _barLimits select 1]
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ private _fireRate = [];

_fireRate sort true;

linearConversion [_statMinMax select 0, _statMinMax select 1, _fireRate select 0, _barLimits select 0, _barLimits select 1]
linearConversion [_statMinMax select 0, _statMinMax select 1, _fireRate param [0, 0], _barLimits select 0, _barLimits select 1]
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ private _dispersion = [];
} foreach _fireModes;

_dispersion sort true;
_dispersion = _dispersion select 0;
_dispersion = _dispersion param [0, 0];

format ["%1 MIL (%2 MOA)", (_dispersion * 1000) toFixed 2, (_dispersion / pi * 10800) ToFixed 1];
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ private _fireRate = [];
} foreach _fireModes;

_fireRate sort true;
_fireRate = _fireRate select 0;
_fireRate = _fireRate param [0, 0];

format ["%1 rpm", round (60 / _fireRate)]

0 comments on commit 0c0c129

Please sign in to comment.