From: terencehill Date: Thu, 16 May 2013 08:23:22 +0000 (+0200) Subject: Rearrange a check X-Git-Tag: xonotic-v0.8.0~226^2~1^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5cb768fde03dfcfc0964a43b12967cdb06016c82;p=xonotic%2Fxonotic-data.pk3dir.git Rearrange a check --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 647fa7299..1755b6012 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -2232,13 +2232,13 @@ void HUD_Score(void) float row, column, rows = 0, columns = 0; local noref vector offset = '0 0 0'; vector score_pos, score_size; //for scores other than myteam - if (spectatee_status == -1 || autocvar_hud_panel_score_rankings) + if(autocvar_hud_panel_score_rankings) + { + HUD_Score_Rankings(pos, mySize, me); + return; + } + if(spectatee_status == -1) { - if (autocvar_hud_panel_score_rankings) - { - HUD_Score_Rankings(pos, mySize, me); - return; - } rows = mySize_y/mySize_x; rows = bound(1, floor((sqrt(4 * (3/1) * rows * team_count + rows * rows) + rows + 0.5) / 2), team_count); // ^^^ ammo item aspect goes here