From: terencehill Date: Tue, 3 May 2011 20:00:41 +0000 (+0200) Subject: Sort teams by score, group players by team and then sort players by score in each... X-Git-Tag: xonotic-v0.5.0~262^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7322fcdad1391c5f78863078b884fc23bf39e6d3;p=xonotic%2Fxonotic-data.pk3dir.git Sort teams by score, group players by team and then sort players by score in each team --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 46628efe8..3c07fecb1 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