Skip to content

Commit

Permalink
[Arsenal] Filter firemodes for precision display by showToPlayer (#6572)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blutze authored and PabstMirror committed Sep 14, 2018
1 parent d6976f6 commit 3ee94d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/arsenal/functions/fnc_statTextStatement_accuracy.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ private _fireModes = getArray (_config >> "modes");
private _dispersion = [];

{
_dispersion pushBackUnique (getNumber (_config >> _x >> "dispersion"));
if (getNumber (_config >> _x >> "showToPlayer") != 0) then {
_dispersion pushBackUnique (getNumber (_config >> _x >> "dispersion"));
};
} foreach _fireModes;

_dispersion sort true;
Expand Down

0 comments on commit 3ee94d3

Please sign in to comment.