Better scoreboard colors

This commit is contained in:
def 2014-02-02 20:12:53 +01:00
parent 823a04333a
commit 5b07793c16

View file

@ -359,10 +359,8 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch
{
Graphics()->TextureSet(-1);
Graphics()->QuadsBegin();
float r = (DDTeam % 22) / 22.0f;
float g = ((DDTeam - 22) % 22) / 22.0f;
float b = ((DDTeam - 44) % 22) / 22.0f;
Graphics()->SetColor(r, g, b, 0.5f);
vec3 rgb = HslToRgb(vec3(DDTeam / 64.0f, 1.0f, 0.5f));
Graphics()->SetColor(rgb.r, rgb.g, rgb.b, 0.5f);
int Corners = 0;