]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Display an empty scoreboard in the beginning in DM too
authorterencehill <piuntn@gmail.com>
Tue, 30 Aug 2016 23:32:15 +0000 (01:32 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 30 Aug 2016 23:32:15 +0000 (01:32 +0200)
qcsrc/client/hud/panel/scoreboard.qc

index d85bab8497a377f6cd3dfbe52c1f4487e5acc4dc..8c6a2cbcb8e5dc6cb7e3318aff26cadc6e7c0808 100644 (file)
@@ -1503,12 +1503,10 @@ void Scoreboard_Draw()
        else
        {
                for(tm = teams.sort_next; tm; tm = tm.sort_next)
-               {
-                       if(tm.team == NUM_SPECTATOR)
-                               continue;
-
-                       pos = Scoreboard_MakeTable(pos, tm, panel_bg_color, bg_size);
-               }
+                       if(tm.team != NUM_SPECTATOR)
+                               break;
+               // display it anyway
+               pos = Scoreboard_MakeTable(pos, tm, panel_bg_color, bg_size);
        }
 
        if(gametype == MAPINFO_TYPE_CTS || gametype == MAPINFO_TYPE_RACE) {