Fix nametag names jump when no ranks shown and talking (#7807)

This commit is contained in:
Filip Maciejewski 2020-07-12 05:16:01 +02:00 committed by GitHub
parent 94ba0784f9
commit 731c1c27a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,