From e0e59297278cc9013f20e34b6c024895d4bc45e7 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 14 Sep 2016 11:20:22 +0200 Subject: [PATCH] Scoreboard: show number of spectators --- qcsrc/client/hud/panel/scoreboard.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 5e48bc371..52814acb0 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -1544,8 +1544,12 @@ void Scoreboard_Draw() { if(pl.team == NUM_SPECTATOR) { + for(tm = teams.sort_next; tm; tm = tm.sort_next) + if(tm.team == NUM_SPECTATOR) + break; + str = sprintf("%s (%d)", _("Spectators"), tm.team_size); draw_beginBoldFont(); - drawstring(pos, _("Spectators"), hud_fontsize, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL); + drawstring(pos, str, hud_fontsize, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL); draw_endBoldFont(); pos.y += 1.25 * hud_fontsize.y; -- 2.39.2