]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove useless checks
authorterencehill <piuntn@gmail.com>
Mon, 15 Aug 2016 20:21:50 +0000 (22:21 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 15 Aug 2016 20:21:50 +0000 (22:21 +0200)
qcsrc/client/hud/panel/score.qc
qcsrc/client/hud/panel/scoreboard.qc

index 66a834ea77ada751df758bdddc1a7c84093ea271..cd0d6fa32a887e6448fe25350ff896e1b185275b 100644 (file)
@@ -80,8 +80,9 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me)
                for(tm = teams.sort_next; tm; tm = tm.sort_next) {
                        if(tm.team == NUM_SPECTATOR)
                                continue;
-                       if(!tm.team && teamplay)
+                       if(!tm.team)
                                continue;
+
                        if (tm.team == myteam)
                                drawfill(pos + eX * score_size * i, eX * score_size + eY * fontsize.y, '1 1 1', highlight_alpha * panel_fg_alpha, DRAWFLAG_NORMAL);
                        drawstring_aspect(pos + eX * score_size * i, ftos(tm.(teamscores(ts_primary))), eX * score_size + eY * fontsize.y, Team_ColorRGB(tm.team) * 0.8, panel_fg_alpha, DRAWFLAG_NORMAL);
@@ -281,8 +282,9 @@ void HUD_Score()
                for(tm = teams.sort_next; tm; tm = tm.sort_next) {
                        if(tm.team == NUM_SPECTATOR)
                                continue;
-                       if(!tm.team && teamplay)
+                       if(!tm.team)
                                continue;
+
                        score = tm.(teamscores(ts_primary));
                        if(autocvar__hud_configure)
                                score = 123;
index 9a3c5b61a9b01fe266f8650bea53741c0efca71e..7b2675f69bb85b16bcb99972cf3a5380beb9f2e1 100644 (file)
@@ -1370,7 +1370,7 @@ void Scoreboard_Draw()
                {
                        if(tm.team == NUM_SPECTATOR)
                                continue;
-                       if(!tm.team && teamplay)
+                       if(!tm.team)
                                continue;
 
                        draw_beginBoldFont();
@@ -1400,8 +1400,6 @@ void Scoreboard_Draw()
                {
                        if(tm.team == NUM_SPECTATOR)
                                continue;
-                       if(!tm.team && teamplay)
-                               continue;
 
                        pos = Scoreboard_MakeTable(pos, tm, panel_bg_color, bg_size);
                }