mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fix wrong limit and calculation
This commit is contained in:
parent
38fc5ff50a
commit
a867847712
|
@ -336,6 +336,7 @@ float CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const c
|
|||
NumRenderScoreIDs++;
|
||||
}
|
||||
}
|
||||
NumRenderScoreIDs = 16;
|
||||
RenderScoreIDs[15] = -1;
|
||||
HoleSizes[0] = m_pClient->m_GameInfo.m_aTeamSize[Team] - 15;
|
||||
|
||||
|
@ -421,7 +422,7 @@ float CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const c
|
|||
if(RenderScoreIDs[i] >= 0)
|
||||
{
|
||||
const CGameClient::CPlayerInfoItem *pInfo = &m_pClient->m_Snap.m_aInfoByScore[RenderScoreIDs[i]];
|
||||
bool RenderDead = !(pInfo->m_pPlayerInfo->m_PlayerFlags&PLAYERFLAG_DEAD);
|
||||
bool RenderDead = pInfo->m_pPlayerInfo->m_PlayerFlags&PLAYERFLAG_DEAD;
|
||||
float ColorAlpha = RenderDead ? 0.5f : 1.0f;
|
||||
TextRender()->TextColor(1.0f, 1.0f, 1.0f, ColorAlpha);
|
||||
|
||||
|
|
Loading…
Reference in a new issue