Don't show the deathmatch scoreboard in single player.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3272 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-07-14 15:07:14 +00:00
parent 294e82f158
commit 8c66660fe0

View file

@ -1724,6 +1724,17 @@ void Sbar_DrawScoreboard (void)
if (deadcount == cl.splitclients && !cl.spectator)
{
if (sv.state && cls.gamemode == GAME_COOP)
{
for (pnum = 0; pnum < sv.allocated_client_slots; pnum++)
{
if (svs.clients[pnum].state)
if (svs.clients[pnum].netchan.remote_address.type != NA_LOOPBACK)
break;
}
if (pnum == sv.allocated_client_slots)
return;
}
if (cl.teamplay > 0 && !sb_showscores)
Sbar_TeamOverlay();
else