Fix scoreboard on ddnet server

Broken in https://github.com/ddnet/ddnet/pull/3251

Thanks to louis for report
This commit is contained in:
def 2020-11-07 18:36:24 +01:00
parent 677ea1f98f
commit 6da48a0bc3

View file

@ -152,9 +152,6 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch
if(Team == TEAM_SPECTATORS)
return;
if(NumPlayers < 0)
NumPlayers = m_pClient->m_Snap.m_aTeamSize[Team];
bool lower16 = false;
bool upper16 = false;
bool lower24 = false;
@ -178,6 +175,9 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch
if(Team < -1)
Team = 0;
if(NumPlayers < 0)
NumPlayers = m_pClient->m_Snap.m_aTeamSize[Team];
float h = 760.0f;
// background