From 731c1c27a6b5a68993b6ad3f158767c08cb79768 Mon Sep 17 00:00:00 2001 From: Filip Maciejewski Date: Sun, 12 Jul 2020 05:16:01 +0200 Subject: [PATCH] Fix nametag names jump when no ranks shown and talking (#7807) --- addons/nametags/functions/fnc_drawNameTagIcon.sqf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/addons/nametags/functions/fnc_drawNameTagIcon.sqf b/addons/nametags/functions/fnc_drawNameTagIcon.sqf index 61a8a1b930..55fb2d960f 100644 --- a/addons/nametags/functions/fnc_drawNameTagIcon.sqf +++ b/addons/nametags/functions/fnc_drawNameTagIcon.sqf @@ -30,10 +30,8 @@ _fnc_parameters = { //Set Icon: private _icon = ""; - private _size = 0; if (_drawSoundwave) then { _icon = format [QPATHTOF(UI\soundwave%1.paa), floor random 10]; - _size = 1; } else { if (_drawRank && {rank _target != ""}) then { _icon = GVAR(factionRanks) getVariable (_target getVariable [QGVAR(faction), faction _target]); @@ -42,7 +40,6 @@ _fnc_parameters = { } else { _icon = format ["\A3\Ui_f\data\GUI\Cfg\Ranks\%1_gs.paa", rank _target]; }; - _size = 1; }; }; @@ -76,8 +73,8 @@ _fnc_parameters = { _icon, _color, [], - (_size * _scale), - (_size * _scale), + _scale, + _scale, 0, _name, 2,