Skip to content

Commit

Permalink
Merge pull request #2135 from acemod/nameTagsWhenPaused
Browse files Browse the repository at this point in the history
Don't draw nametags when escape menu is open
  • Loading branch information
PabstMirror committed Aug 13, 2015
2 parents 43e9c42 + b94cb3b commit 2d8261d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/nametags/functions/fnc_onDraw3d.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

private ["_onKeyPressAlphaMax", "_defaultIcon", "_distance", "_alpha", "_icon", "_targets", "_pos2", "_vecy", "_relPos", "_projDist", "_pos", "_target", "_targetEyePosASL", "_ambientBrightness", "_maxDistance"];

//don't show nametags in spectator
if ((isNull ACE_player) || {!alive ACE_player}) exitWith {};
//don't show nametags in spectator or if RscDisplayMPInterrupt is open
if ((isNull ACE_player) || {!alive ACE_player} || {!isNull (findDisplay 49)}) exitWith {};

_ambientBrightness = ((([] call EFUNC(common,ambientBrightness)) + ([0, 0.4] select ((currentVisionMode ace_player) != 0))) min 1) max 0;
_maxDistance = _ambientBrightness * GVAR(PlayerNamesViewDistance);
Expand Down

0 comments on commit 2d8261d

Please sign in to comment.