From: terencehill Date: Sat, 26 Nov 2016 02:26:42 +0000 (+0100) Subject: Display yellow score for remaining players X-Git-Tag: xonotic-v0.8.2~411 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aac155dcb8e76a2464adc777c78bb60e59f2ac79;p=xonotic%2Fxonotic-data.pk3dir.git Display yellow score for remaining players --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 284fbf792..9e3450b5d 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -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);