From 1613ce3ff6304d75af925eeed5b7fe5e0a768f4d Mon Sep 17 00:00:00 2001 From: commy2 Date: Sun, 27 Sep 2015 16:55:43 +0200 Subject: [PATCH] correct comment --- addons/weaponselect/functions/fnc_selectNextGrenade.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/weaponselect/functions/fnc_selectNextGrenade.sqf b/addons/weaponselect/functions/fnc_selectNextGrenade.sqf index c0d9e8ccf4..0c0d834a3d 100644 --- a/addons/weaponselect/functions/fnc_selectNextGrenade.sqf +++ b/addons/weaponselect/functions/fnc_selectNextGrenade.sqf @@ -58,7 +58,7 @@ _nextGrenade = _grenades select _nextGrenadeIndex; // abort if the same grenade would be selected if (_currentGrenade == _nextGrenade) exitWith {false}; -// current best method to select a grenade: remove all grenades, add the one you want to select first and then add the rest +// current best method to select a grenade: remove all grenades except the one you want to select, then add them back _uniformGrenades = [uniformItems _unit, {_x in GVAR(GrenadesAll) && {_x != _nextGrenade}}] call EFUNC(common,filter); _vestGrenades = [vestItems _unit, {_x in GVAR(GrenadesAll) && {_x != _nextGrenade}}] call EFUNC(common,filter); _backpackGrenades = [backpackItems _unit, {_x in GVAR(GrenadesAll) && {_x != _nextGrenade}}] call EFUNC(common,filter);