From 8509646f882c0e74eaa19359dd046a3fd760fce2 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Mon, 20 Jul 2015 17:17:23 +0100 Subject: [PATCH] Correct side usage --- addons/spectator/functions/fnc_handleToolbar.sqf | 2 +- addons/spectator/functions/fnc_updateUnits.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/spectator/functions/fnc_handleToolbar.sqf b/addons/spectator/functions/fnc_handleToolbar.sqf index 915749ca42..ece6cb6464 100644 --- a/addons/spectator/functions/fnc_handleToolbar.sqf +++ b/addons/spectator/functions/fnc_handleToolbar.sqf @@ -44,7 +44,7 @@ if (GVAR(camMode) == 0) then { _speed = format ["%1 m/s", GVAR(camSpeed)]; } else { _focus = rank GVAR(camUnit); - _fov = WFSideText GVAR(camUnit); + _fov = WFSideText (group GVAR(camUnit)); _name = name GVAR(camUnit); _speed = format ["%1 km/h", floor(speed GVAR(camUnit))]; }; diff --git a/addons/spectator/functions/fnc_updateUnits.sqf b/addons/spectator/functions/fnc_updateUnits.sqf index 4c61bb5989..866deacdbc 100644 --- a/addons/spectator/functions/fnc_updateUnits.sqf +++ b/addons/spectator/functions/fnc_updateUnits.sqf @@ -40,7 +40,7 @@ _newUnits = [[],allPlayers,allUnits] select GVAR(filterUnits); // Side setting filter _sides = []; -_cond = [{_this == playerSide},{(_this getFriend playerSide) >= 0.6},{(_this getFriend playerSide) < 0.6},{true}] select GVAR(filterSides); +_cond = [{_this == (side group player)},{(_this getFriend (side group player)) >= 0.6},{(_this getFriend (side group player)) < 0.6},{true}] select GVAR(filterSides); { if (_x call _cond) then { _sides pushBack _x;