From 5cb768fde03dfcfc0964a43b12967cdb06016c82 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 16 May 2013 10:23:22 +0200 Subject: [PATCH] Rearrange a check --- qcsrc/client/hud.qc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.39.2