mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 05:41:42 +00:00
Fix players not rendering on team scoreboards
This commit is contained in:
parent
a75fbd229e
commit
72f2942929
1 changed files with 6 additions and 6 deletions
|
@ -2015,13 +2015,13 @@ static void HU_Draw32TeamTabRankings(playersort_t *tab, INT32 whiteplayer)
|
||||||
greycheck = greycheckdef;
|
greycheck = greycheckdef;
|
||||||
supercheck = supercheckdef;
|
supercheck = supercheckdef;
|
||||||
|
|
||||||
if (tab[i].color == skincolor_redteam) //red
|
if (players[tab[i].num].ctfteam == 1) //red
|
||||||
{
|
{
|
||||||
redplayers++;
|
redplayers++;
|
||||||
x = 14 + (BASEVIDWIDTH/2);
|
x = 14 + (BASEVIDWIDTH/2);
|
||||||
y = (redplayers * 9) + 20;
|
y = (redplayers * 9) + 20;
|
||||||
}
|
}
|
||||||
else if (tab[i].color == skincolor_blueteam) //blue
|
else if (players[tab[i].num].ctfteam == 2) //blue
|
||||||
{
|
{
|
||||||
blueplayers++;
|
blueplayers++;
|
||||||
x = 14;
|
x = 14;
|
||||||
|
@ -2103,7 +2103,7 @@ void HU_DrawTeamTabRankings(playersort_t *tab, INT32 whiteplayer)
|
||||||
if (players[tab[i].num].spectator)
|
if (players[tab[i].num].spectator)
|
||||||
continue; //ignore them.
|
continue; //ignore them.
|
||||||
|
|
||||||
if (tab[i].color == skincolor_redteam) //red
|
if (players[tab[i].num].ctfteam == 1) //red
|
||||||
{
|
{
|
||||||
if (redplayers++ > 8)
|
if (redplayers++ > 8)
|
||||||
{
|
{
|
||||||
|
@ -2111,7 +2111,7 @@ void HU_DrawTeamTabRankings(playersort_t *tab, INT32 whiteplayer)
|
||||||
break; // don't make more loops than we need to.
|
break; // don't make more loops than we need to.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (tab[i].color == skincolor_blueteam) //blue
|
else if (players[tab[i].num].ctfteam == 2) //blue
|
||||||
{
|
{
|
||||||
if (blueplayers++ > 8)
|
if (blueplayers++ > 8)
|
||||||
{
|
{
|
||||||
|
@ -2142,14 +2142,14 @@ void HU_DrawTeamTabRankings(playersort_t *tab, INT32 whiteplayer)
|
||||||
if (players[tab[i].num].spectator)
|
if (players[tab[i].num].spectator)
|
||||||
continue; //ignore them.
|
continue; //ignore them.
|
||||||
|
|
||||||
if (tab[i].color == skincolor_redteam) //red
|
if (players[tab[i].num].ctfteam == 1) //red
|
||||||
{
|
{
|
||||||
if (redplayers++ > 8)
|
if (redplayers++ > 8)
|
||||||
continue;
|
continue;
|
||||||
x = 32 + (BASEVIDWIDTH/2);
|
x = 32 + (BASEVIDWIDTH/2);
|
||||||
y = (redplayers * 16) + 16;
|
y = (redplayers * 16) + 16;
|
||||||
}
|
}
|
||||||
else if (tab[i].color == skincolor_blueteam) //blue
|
else if (players[tab[i].num].ctfteam == 2) //blue
|
||||||
{
|
{
|
||||||
if (blueplayers++ > 8)
|
if (blueplayers++ > 8)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue