From: z411 Date: Fri, 7 May 2021 19:10:40 +0000 (-0400) Subject: Duel scoreboard: Make weapon icon slightly bigger X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b79c01d0348b097d4119b370ed60bce90a2c53f3;p=xonotic%2Fxonotic-data.pk3dir.git Duel scoreboard: Make weapon icon slightly bigger --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 1f5a20695..6f04ea18a 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -1430,19 +1430,18 @@ void Scoreboard_Duel_DrawTable(vector pos, bool invert, entity pl, entity tm) draw_str = strcat(ftos(weapon_cnt_hit), " / ", ftos(weapon_cnt_fired)); drawstring(tmp_in + eX * column_width * (invert ? c-- : c++) + eX * (column_width / 2) - eX * stringwidth(ftos(weapon_cnt_hit), false, hud_fontsize) - eX * hud_fontsize.x * 0.5, draw_str, hud_fontsize, dmg_color, panel_fg_alpha, DRAWFLAG_NORMAL); + + total_weapons++; } // weapon icon if(invert) { tmp_in.x = pos.x + panel_size.x - panel_bg_padding - hud_fontsize.x / 2; - drawpic_aspect_skin(tmp_in, it.model2, vec2(50, hud_fontsize.y), '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL); + drawpic_aspect_skin(tmp_in, it.model2, vec2(50, hud_fontsize.y * 1.15), '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL); } tmp_in.x = pos.x + panel_bg_padding; tmp_in.y += hud_fontsize.y * 1.25; - - if(weapon_cnt_fired) - total_weapons++; }); if(total_weapons) average_acc = floor((average_acc / total_weapons) + 0.5);