From 7322fcdad1391c5f78863078b884fc23bf39e6d3 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 3 May 2011 22:00:41 +0200 Subject: [PATCH] Sort teams by score, group players by team and then sort players by score in each team --- qcsrc/client/hud.qc | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 46628efe89..3c07fecb17 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -2602,17 +2602,16 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me, float team_count) i, first_pl = 0; if (autocvar__hud_configure) { + float players_per_team; if (team_count) { // show team scores in the first line float score_size = mySize_x / team_count; - for(tm = teams.sort_next; tm; tm = tm.sort_next) { - if(tm.team == COLOR_SPECTATOR) - continue; - if (tm.team == myteam) + players_per_team = max(2, ceil((entries - 1) / team_count)); + for(i=0; i