added new deadtee image by android272 and fixed its rendering

This commit is contained in:
oy 2018-10-14 15:29:56 +02:00
parent 83434941fe
commit e54e5afdb3
2 changed files with 7 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -14,6 +14,7 @@
#include <game/client/render.h> #include <game/client/render.h>
#include <game/client/components/countryflags.h> #include <game/client/components/countryflags.h>
#include <game/client/components/motd.h> #include <game/client/components/motd.h>
#include <game/client/components/skins.h>
#include "scoreboard.h" #include "scoreboard.h"
@ -258,7 +259,12 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch
Graphics()->BlendNormal(); Graphics()->BlendNormal();
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_DEADTEE].m_Id); Graphics()->TextureSet(g_pData->m_aImages[IMAGE_DEADTEE].m_Id);
Graphics()->QuadsBegin(); Graphics()->QuadsBegin();
IGraphics::CQuadItem QuadItem(TeeOffset, y, 64*TeeSizeMod, 64*TeeSizeMod); if(m_pClient->m_GameInfo.m_GameFlags&GAMEFLAG_TEAMS)
{
vec4 Color = m_pClient->m_pSkins->GetColorV4(m_pClient->m_pSkins->GetTeamColor(true, 0, m_pClient->m_aClients[pInfo->m_ClientID].m_Team, SKINPART_BODY), false);
Graphics()->SetColor(Color.r, Color.g, Color.b, Color.a);
}
IGraphics::CQuadItem QuadItem(TeeOffset, y-5.0f-Spacing/2.0f, 64*TeeSizeMod, 64*TeeSizeMod);
Graphics()->QuadsDrawTL(&QuadItem, 1); Graphics()->QuadsDrawTL(&QuadItem, 1);
Graphics()->QuadsEnd(); Graphics()->QuadsEnd();
} }