]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Display yellow score for remaining players
authorterencehill <piuntn@gmail.com>
Sat, 26 Nov 2016 02:26:42 +0000 (03:26 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 26 Nov 2016 02:26:42 +0000 (03:26 +0100)
qcsrc/client/hud/panel/scoreboard.qc

index 284fbf79205af209070a186f067f9949eca375bd..9e3450b5d32543284c4ad493b0307dd6ab791eb2 100644 (file)
@@ -670,7 +670,7 @@ string Scoreboard_GetField(entity pl, PlayerScoreField field)
                case SP_DMG: case SP_DMGTAKEN:
                        return sprintf("%.1f k", pl.(scores(field)) / 1000);
 
-               default:
+               default: case SP_SCORE:
                        tmp = pl.(scores(field));
                        f = scores_flags(field);
                        if(field == ps_primary)
@@ -951,7 +951,7 @@ vector Scoreboard_DrawOthers(vector item_pos, vector rgb, int this_team, entity
                                field = Scoreboard_GetField(pl, SP_PING);
                }
                else if(autocvar_hud_panel_scoreboard_others_showscore)
-                       field = ftos(pl.(scores(ps_primary)));
+                       field = Scoreboard_GetField(pl, SP_SCORE);
 
                string str = textShortenToWidth(entcs_GetName(pl.sv_entnum), namesize, hud_fontsize, stringwidth_colors);
                float column_width = stringwidth(str, true, hud_fontsize);