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 f15979e commit b92b5a3
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 b92b5a3

Please sign in to comment.