From 8c66660fe0962d92b87a90744d02c881abe49862 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 14 Jul 2009 15:07:14 +0000 Subject: [PATCH] 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 --- engine/client/sbar.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/engine/client/sbar.c b/engine/client/sbar.c index 898b8332e..965fbbe9e 100644 --- a/engine/client/sbar.c +++ b/engine/client/sbar.c @@ -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