mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Proper old team
This commit is contained in:
parent
61ca36b4b3
commit
853f510fc9
|
@ -316,7 +316,7 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch
|
||||||
if (upper24)
|
if (upper24)
|
||||||
rendered = -24;
|
rendered = -24;
|
||||||
|
|
||||||
int OldDDTeam = 0;
|
int OldDDTeam = -1;
|
||||||
|
|
||||||
for(int i = 0; i < MAX_CLIENTS; i++)
|
for(int i = 0; i < MAX_CLIENTS; i++)
|
||||||
{
|
{
|
||||||
|
@ -341,6 +341,20 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (OldDDTeam == -1)
|
||||||
|
{
|
||||||
|
for (int j = i - 1; j >= 0; j--)
|
||||||
|
{
|
||||||
|
const CNetObj_PlayerInfo *pInfo2 = m_pClient->m_Snap.m_paInfoByDDTeam[j];
|
||||||
|
|
||||||
|
if(!pInfo2 || pInfo2->m_Team != Team)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
OldDDTeam = ((CGameClient *) m_pClient)->m_Teams.Team(pInfo2->m_ClientID);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (DDTeam != TEAM_FLOCK)
|
if (DDTeam != TEAM_FLOCK)
|
||||||
{
|
{
|
||||||
Graphics()->TextureSet(-1);
|
Graphics()->TextureSet(-1);
|
||||||
|
|
Loading…
Reference in a new issue