Skip to content

Commit

Permalink
possible drawicon fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisum committed Jun 4, 2018
1 parent 033c5a3 commit d081e4e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions functions/player/fn_drawIcon.sqf
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
params ["_map", "_index"];

private _array = ((GRAD_REPLAY_DATABASE_LOCAL param [grad_replay_playbackPosition,[],[[]]]) param [_index,[],[[]]]);
private _positionData = GRAD_REPLAY_DATABASE_LOCAL param [grad_replay_playbackPosition,[]];
if !(_positionData isEqualType []) exitWith {};

private _iconData = _positionData param [_index,[]];
if !(_iconData isEqualType []) exitWith {};

_scale = ctrlMapScale _map;
_showName = _scale < 0.03;


_array params [
_iconData params [
["_icon", ""],
["_color", [0,0,0,0]],
["_pos", [0,0,0]],
Expand All @@ -15,6 +18,7 @@ _array params [
["_groupname", ""]
];


_name = if (_showName) then { _name + " " + _groupname } else { "" };

_map drawIcon [
Expand Down

0 comments on commit d081e4e

Please sign in to comment.