Skip to content

Commit

Permalink
Fix for the last script error
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeno69 committed Jul 11, 2020
1 parent 09614b8 commit 205182a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions co30_Domination.Altis/revive/fn_spectdraw3d.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@

#define __d_textsize_dr3d 0.03333

private _cam2world = positionCameraToWorld [0,0,0];
private ["_distu", "_vu", "_targetPos", "_dodraw", "_tex", "_rtex", "_rsize", "_hh"];
private _d_pn_hud = d_dist_pname_hud;
private _fnc_ispl = d_fnc_isplayer;
private _fnc_ghpn = d_fnc_gethpname;
private _fnc_grp = d_fnc_getrankpic;
private _fnc_gpn = d_fnc_getplayername;
[positionCameraToWorld [0,0,0], d_dist_pname_hud, d_fnc_isplayer, d_fnc_gethpname, d_fnc_getrankpic, d_fnc_getplayername] params ["_cam2world", "_d_pn_hud", "_fnc_ispl", "_fnc_ghpn", "_fnc_grp", "_fnc_gpn"];
{
_distu = _cam2world distance _x;
if (_distu <= _d_pn_hud) then {
Expand All @@ -36,7 +31,7 @@ private _fnc_gpn = d_fnc_getplayername;
__TRACE_1("1","_tex")
if (isNil "_tex") then {_tex = _x call _fnc_gpn};
__TRACE_1("2","_tex")
_hh = _x call _nfc_grp;
_hh = _x call _fnc_grp;
__TRACE_1("","_hh")
_rtex = _hh # 0;
_rsize = _hh # 1;
Expand Down

0 comments on commit 205182a

Please sign in to comment.