From ddc12a46e8d09972e6d437f21f1481f76506d9fb Mon Sep 17 00:00:00 2001 From: bellum128 Date: Tue, 14 Jul 2020 02:53:33 -0400 Subject: [PATCH] Fixed a shallow copy to the rank color variable, causing issues with other addons accessing its alpha value --- lua/ev_plugins/sh_playernames.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/ev_plugins/sh_playernames.lua b/lua/ev_plugins/sh_playernames.lua index 42d98e3..0eee860 100644 --- a/lua/ev_plugins/sh_playernames.lua +++ b/lua/ev_plugins/sh_playernames.lua @@ -92,7 +92,7 @@ else surface.DrawTexturedRect( drawPos.x + 5, drawPos.y + 5, 14, 14 ) local col = evolve.ranks[ pl:EV_GetRank() ].Color or team.GetColor( pl:Team() ) - col.a = math.Clamp( alpha * 2, 0, 255 ) + col = Color(col.r, col.g, col.b, math.Clamp( alpha * 2, 0, 255 )) draw.DrawText( pl:Nick(), "DefaultBold", drawPos.x + 28, drawPos.y + 5, col, 0 ) end end