mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix scoreboard on ddnet server
Broken in https://github.com/ddnet/ddnet/pull/3251 Thanks to louis for report
This commit is contained in:
parent
677ea1f98f
commit
6da48a0bc3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue