From eb355b5a705dada57c4a4faec17588a0da5a5fb6 Mon Sep 17 00:00:00 2001 From: Smith Date: Mon, 30 Nov 2020 13:05:21 +0200 Subject: [PATCH 1/4] fix getting players from a group --- addons/map_gestures/functions/fnc_getProximityPlayers.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/map_gestures/functions/fnc_getProximityPlayers.sqf b/addons/map_gestures/functions/fnc_getProximityPlayers.sqf index f687dfdfca6..6be4bc71c61 100644 --- a/addons/map_gestures/functions/fnc_getProximityPlayers.sqf +++ b/addons/map_gestures/functions/fnc_getProximityPlayers.sqf @@ -37,7 +37,7 @@ switch (_this) do { _proximityPlayers append allUnits; }; case (1): { // Players in Group - _proximityPlayers append group ace_player; + _proximityPlayers append units group ace_player; }; case (2): { // Players on Side _proximityPlayers append (allUnits select {side (group _x) == side (group ace_player)}); From 45bcd0c3fff0f5d91de49008a5df367dd81d043e Mon Sep 17 00:00:00 2001 From: Smith Date: Mon, 30 Nov 2020 13:24:39 +0200 Subject: [PATCH 2/4] add brackets Co-authored-by: jonpas --- addons/map_gestures/functions/fnc_getProximityPlayers.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/map_gestures/functions/fnc_getProximityPlayers.sqf b/addons/map_gestures/functions/fnc_getProximityPlayers.sqf index 6be4bc71c61..ff500b3ec22 100644 --- a/addons/map_gestures/functions/fnc_getProximityPlayers.sqf +++ b/addons/map_gestures/functions/fnc_getProximityPlayers.sqf @@ -37,7 +37,7 @@ switch (_this) do { _proximityPlayers append allUnits; }; case (1): { // Players in Group - _proximityPlayers append units group ace_player; + _proximityPlayers append (units group ace_player); }; case (2): { // Players on Side _proximityPlayers append (allUnits select {side (group _x) == side (group ace_player)}); From 1684a0ee095ec23c01bcfdae5acd837932b4ad05 Mon Sep 17 00:00:00 2001 From: Smith Date: Mon, 30 Nov 2020 18:12:06 +0200 Subject: [PATCH 3/4] small refactoring --- addons/map_gestures/functions/fnc_getProximityPlayers.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/map_gestures/functions/fnc_getProximityPlayers.sqf b/addons/map_gestures/functions/fnc_getProximityPlayers.sqf index ff500b3ec22..af1f4739e2f 100644 --- a/addons/map_gestures/functions/fnc_getProximityPlayers.sqf +++ b/addons/map_gestures/functions/fnc_getProximityPlayers.sqf @@ -37,7 +37,7 @@ switch (_this) do { _proximityPlayers append allUnits; }; case (1): { // Players in Group - _proximityPlayers append (units group ace_player); + _proximityPlayers append (units ace_player); }; case (2): { // Players on Side _proximityPlayers append (allUnits select {side (group _x) == side (group ace_player)}); From 614710b1376057f35ffd959c0523bd82794f0715 Mon Sep 17 00:00:00 2001 From: Smith Date: Tue, 1 Dec 2020 13:06:02 +0200 Subject: [PATCH 4/4] remove useless parentheses Co-authored-by: commy2 --- addons/map_gestures/functions/fnc_getProximityPlayers.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/map_gestures/functions/fnc_getProximityPlayers.sqf b/addons/map_gestures/functions/fnc_getProximityPlayers.sqf index af1f4739e2f..f057c000bcb 100644 --- a/addons/map_gestures/functions/fnc_getProximityPlayers.sqf +++ b/addons/map_gestures/functions/fnc_getProximityPlayers.sqf @@ -37,7 +37,7 @@ switch (_this) do { _proximityPlayers append allUnits; }; case (1): { // Players in Group - _proximityPlayers append (units ace_player); + _proximityPlayers append units ace_player; }; case (2): { // Players on Side _proximityPlayers append (allUnits select {side (group _x) == side (group ace_player)});