Skip to content

Commit

Permalink
Should fix #10
Browse files Browse the repository at this point in the history
sanity checks on colors
who knows why
  • Loading branch information
rejax committed Feb 11, 2015
1 parent 234cc80 commit 5be0864
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/autorun/client/TTT_EasyScoreboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,10 @@ function EZS.AddNameColor( ply )
if not color and EZS.DefaultNameColorToRankColor then color = rank.color end
if rank.dynamic_namecol then
if EZS.AllowNamesToHaveDynamicColor then color = EZS.Dynamic( rank, ply ) end
return color or color_white
elseif color then
return IsColor(color) and color or color_white
elseif color and IsColor(color) then
return color
end

return color_white -- nothing set
end
hook.Add( "TTTScoreboardColorForPlayer", "EasyScoreboard_NameColors", EZS.AddNameColor )

Expand Down

0 comments on commit 5be0864

Please sign in to comment.