]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Rearrange a check
authorterencehill <piuntn@gmail.com>
Thu, 16 May 2013 08:23:22 +0000 (10:23 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 16 May 2013 08:23:22 +0000 (10:23 +0200)
qcsrc/client/hud.qc

index 647fa729971d2a4fee78db675d2682077376e52b..1755b6012ae7b114fadef79ba5de958b4340eec0 100644 (file)
@@ -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