From: terencehill Date: Wed, 14 Sep 2016 09:20:22 +0000 (+0200) Subject: Scoreboard: show number of spectators X-Git-Tag: xonotic-v0.8.2~588 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e0e59297278cc9013f20e34b6c024895d4bc45e7;p=xonotic%2Fxonotic-data.pk3dir.git Scoreboard: show number of spectators --- 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;